*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#141922;--surface:#1c2333;--surface2:#242d42;--surface3:#2d3850;--border:#35415c;--border2:#4a5878;--text:#eef2f8;--text2:#b0bece;--text3:#7d92a8;--accent:#5b9bf8;--accent-dim:#1a3560;--red:#f05252;--red-dim:#3d1515;--green:#34d470;--green-dim:#0f3020;--gold:#f8ae2a;--gold-dim:#302008;--cyan:#22c7e8;--cyan-dim:#082838;--purple:#b39dfa;--purple-dim:#221648;--teal:#36d9c4;--teal-dim:#082e28;--indigo:#8fa8fb;--indigo-dim:#1e2050;--radius:12px;--radius-sm:7px;--shadow:0 4px 28px #00000073}:root[data-theme=light]{--bg:#f0f4f8;--surface:#fff;--surface2:#f1f5f9;--surface3:#e2e8f0;--border:#cbd5e1;--border2:#94a3b8;--text:#0f172a;--text2:#334155;--text3:#64748b;--accent:#2563eb;--accent-dim:#dbeafe;--red:#dc2626;--red-dim:#fee2e2;--green:#15803d;--green-dim:#dcfce7;--gold:#b45309;--gold-dim:#fef3c7;--cyan:#0e7490;--cyan-dim:#cffafe;--purple:#6d28d9;--purple-dim:#ede9fe;--teal:#0f766e;--teal-dim:#ccfbf1;--indigo:#4338ca;--indigo-dim:#e0e7ff;--shadow:0 4px 20px #0000001a}:root[data-theme=light] .app-header{background:#fffffff2}:root[data-theme=light] .section-red{background:color-mix(in srgb, var(--surface) 90%, var(--red-dim))}:root[data-theme=light] .surgeon-card:hover,:root[data-theme=light] .recent-card:hover,:root[data-theme=light] .template-card:hover{background:var(--surface2)}:root[data-theme=light] .btn-google{border-color:#dadce0;box-shadow:0 1px 3px #0000001f}:root[data-theme=light] .tag,:root[data-theme=light] .card-type-tag{border-color:#bfdbfe}html{font-size:16px}body{background:var(--bg);color:var(--text);min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;line-height:1.65}button{cursor:pointer;font:inherit;color:inherit;background:0 0;border:none}input,textarea,select{font:inherit;color:var(--text);background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);outline:none;width:100%;padding:8px 12px}input:focus,textarea:focus,select:focus{border-color:var(--accent)}textarea{resize:vertical}select{cursor:pointer}a{color:var(--accent);text-decoration:none}.btn-primary{background:var(--accent);color:#fff;border-radius:var(--radius-sm);white-space:nowrap;padding:8px 16px;font-size:.85rem;font-weight:600;transition:opacity .15s}.btn-primary:hover{opacity:.88}.btn-primary:disabled{opacity:.4;cursor:not-allowed}.btn-ghost{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text2);padding:8px 14px;font-size:.85rem;transition:border-color .15s,color .15s}.btn-ghost:hover{border-color:var(--border2);color:var(--text)}.btn-ghost-sm{border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text2);background:0 0;padding:4px 10px;font-size:.8rem}.btn-ghost-sm:hover{color:var(--text);border-color:var(--border2)}.btn-danger{background:var(--red);color:#fff;border-radius:var(--radius-sm);padding:8px 16px;font-size:.85rem;font-weight:600}.btn-icon{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);width:36px;height:36px;color:var(--text2);justify-content:center;align-items:center;font-size:1rem;transition:border-color .15s,color .15s;display:flex}.btn-icon:hover{border-color:var(--border2);color:var(--text)}.btn-icon-sm{width:28px;height:28px;color:var(--text3);background:0 0;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;font-size:.8rem;transition:all .15s;display:flex}.btn-icon-sm:hover{background:var(--surface3);color:var(--text)}.btn-icon-sm.danger:hover{background:var(--red-dim);color:var(--red)}.app{flex-direction:column;min-height:100vh;display:flex}.main-content{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:32px 24px 64px}.app-header{background:var(--surface);border-bottom:1px solid var(--border);z-index:100;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;gap:16px;max-width:1100px;height:56px;margin:0 auto;padding:0 24px;display:flex}.header-left{align-items:center;gap:16px;min-width:0;display:flex}.header-right{flex-shrink:0;align-items:center;gap:10px;display:flex}.logo{cursor:pointer;flex-shrink:0;align-items:center;gap:8px;display:flex}.logo-mark{color:var(--accent);font-size:1.2rem}.logo-text{letter-spacing:-.02em;color:var(--text);font-size:1rem;font-weight:700}.breadcrumb{color:var(--text2);align-items:center;gap:4px;min-width:0;font-size:.85rem;display:flex;overflow:hidden}.breadcrumb-sep{color:var(--border2);margin:0 2px}.breadcrumb-link{color:var(--text2);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:2px 4px}.breadcrumb-link:hover{color:var(--text);background:var(--surface2)}.breadcrumb-current{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.search-wrap{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);align-items:center;gap:6px;width:280px;padding:0 10px;transition:border-color .15s;display:flex}.search-wrap:focus-within{border-color:var(--accent)}.search-icon{color:var(--text3);font-size:1.1rem}.search-input{background:0 0;border:none;flex:1;width:auto;padding:7px 0;font-size:.85rem}.search-clear{color:var(--text3);background:0 0;border:none;padding:2px;font-size:1rem}.search-clear:hover{color:var(--text)}.header-search-mobile{display:none}.dashboard{flex-direction:column;gap:36px;display:flex}.dashboard-stats{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;padding:20px 24px;display:flex}.stat-num{color:var(--accent);font-size:2rem;font-weight:700;line-height:1}.stat-label{color:var(--text2);margin-top:4px;font-size:.8rem}.section-title{color:var(--text);align-items:center;gap:8px;font-size:.95rem;font-weight:600;display:flex}.section-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.section-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.count-badge{background:var(--surface3);border:1px solid var(--border);color:var(--text2);border-radius:100px;padding:2px 8px;font-size:.75rem;font-weight:500}.recent-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;display:grid}.recent-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;flex-direction:column;gap:4px;padding:14px 16px;transition:border-color .15s,background .15s;display:flex}.recent-card:hover{border-color:var(--accent);background:var(--surface2)}.recent-card-top{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.recent-proc-name{color:var(--text);font-size:.85rem;font-weight:600;line-height:1.3}.recent-surgeon{color:var(--text2);font-size:.8rem}.recent-hospital{color:var(--text3);font-size:.75rem}.recent-date{color:var(--text3);margin-top:2px;font-size:.72rem}.surgeon-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;display:grid}.surgeon-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;flex-direction:column;gap:8px;padding:18px 20px;transition:border-color .15s,transform .1s;display:flex}.surgeon-card:hover{border-color:var(--accent);transform:translateY(-1px)}.surgeon-card-header{align-items:center;gap:12px;display:flex}.surgeon-avatar{background:var(--accent-dim);border:1px solid var(--accent);width:40px;height:40px;color:var(--accent);letter-spacing:.5px;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.85rem;font-weight:700;display:flex}.surgeon-meta{flex:1;min-width:0}.surgeon-name{font-size:.95rem;font-weight:600;display:block}.surgeon-spec{color:var(--text2);font-size:.78rem;display:block}.proc-count{background:var(--surface3);border:1px solid var(--border);color:var(--text2);border-radius:100px;flex-shrink:0;padding:2px 8px;font-size:.75rem}.surgeon-hospital{color:var(--text2);font-size:.8rem}.surgeon-tags{flex-wrap:wrap;gap:6px;display:flex}.tag{background:var(--accent-dim);color:var(--accent);border:1px solid #2a4a8a;border-radius:100px;padding:2px 8px;font-size:.72rem}.surgeon-notes-preview{color:var(--text3);font-size:.78rem;line-height:1.5}.filter-tabs{flex-wrap:wrap;gap:4px;display:flex}.filter-tab{background:var(--surface2);border:1px solid var(--border);color:var(--text2);border-radius:100px;padding:4px 12px;font-size:.78rem;transition:all .15s}.filter-tab:hover{border-color:var(--border2);color:var(--text)}.filter-tab.active{background:var(--accent-dim);border-color:var(--accent);color:var(--accent)}.empty-state{text-align:center;color:var(--text2);flex-direction:column;align-items:center;gap:12px;padding:48px 24px;display:flex}.empty-icon{font-size:2.5rem}.empty-state p{font-size:.9rem}.add-form-overlay{z-index:200;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.add-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:480px;box-shadow:var(--shadow);padding:28px 28px 24px}.add-form h3{margin-bottom:20px;font-size:1.1rem;font-weight:700}.form-row{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.form-row label{color:var(--text2);text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;font-weight:600}.form-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.confirm-dialog{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:380px;box-shadow:var(--shadow);padding:28px}.confirm-dialog h3{margin-bottom:10px;font-size:1.05rem;font-weight:700}.confirm-dialog p{color:var(--text2);margin-bottom:20px;font-size:.85rem}.surgeon-profile{flex-direction:column;gap:32px;display:flex}.profile-header{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:flex-start;gap:20px;padding:24px 28px;display:flex}.hidden-input{display:none}.profile-avatar-wrap{cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;padding:0;position:relative}.profile-avatar-wrap:hover .avatar-edit-hint{opacity:1}.avatar-edit-hint{color:#fff;letter-spacing:.04em;opacity:0;pointer-events:none;background:#0000008c;border-radius:50%;justify-content:center;align-items:center;font-size:.7rem;font-weight:700;transition:opacity .15s;display:flex;position:absolute;inset:0}.profile-avatar-img{object-fit:cover;border:2px solid var(--accent);border-radius:50%;width:56px;height:56px;display:block}.profile-avatar{background:var(--accent-dim);border:2px solid var(--accent);width:56px;height:56px;color:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:1.1rem;font-weight:700;display:flex}.surgeon-avatar-photo{object-fit:cover;background:var(--surface3)}.profile-info{flex:1;min-width:0}.profile-name{font-size:1.4rem;font-weight:700;line-height:1.2}.profile-details{color:var(--text2);flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;font-size:.85rem;display:flex}.profile-sep{color:var(--border2)}.profile-spec{color:var(--text);font-weight:500}.profile-hospital{color:var(--text2)}.profile-tags{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.profile-name-row{align-items:center;gap:10px;display:flex}.profile-edit-form{flex-direction:column;flex:1;gap:8px;display:flex}.profile-edit-name{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);padding:6px 10px;font-size:1.2rem;font-weight:700}.profile-edit-name:focus{border-color:var(--accent)}.profile-edit-row{gap:8px;display:flex}.profile-edit-row select,.profile-edit-row input{flex:1}.profile-edit-form .form-actions{justify-content:flex-start;margin-top:4px}.notes-section,.procedures-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px 24px}.notes-body{color:var(--text);white-space:pre-wrap;font-size:.9rem;line-height:1.7}.empty-notes{color:var(--text3);font-style:italic}.notes-edit{flex-direction:column;gap:10px;margin-top:8px;display:flex}.notes-edit textarea{min-height:100px}.procedure-list{flex-direction:column;gap:8px;display:flex}.procedure-row{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);align-items:center;gap:8px;transition:border-color .15s;display:flex;overflow:hidden}.procedure-row:hover{border-color:var(--border2)}.procedure-main{text-align:left;flex:1;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:14px 16px;display:flex}.procedure-row-left{flex-direction:column;gap:4px;min-width:0;display:flex}.procedure-type-badge{color:var(--text3);text-transform:uppercase;letter-spacing:.06em;font-size:.7rem;font-weight:600}.procedure-row-name{color:var(--text);font-size:.9rem;font-weight:600}.procedure-row-right{flex-shrink:0;align-items:center;gap:10px;display:flex}.version-badge{background:var(--surface3);border:1px solid var(--border);color:var(--text3);border-radius:4px;padding:2px 7px;font-family:monospace;font-size:.7rem;font-weight:600}.procedure-date{color:var(--text3);font-size:.78rem}.chevron{color:var(--text3);font-size:1.1rem}.procedure-row-actions{flex-shrink:0;align-items:center;gap:2px;padding:0 8px 0 0;display:flex}.procedure-card-view{flex-direction:column;gap:24px;display:flex}.card-view-header{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px 24px}.card-header-top{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.card-view-title{font-size:1.45rem;font-weight:700;line-height:1.3}.card-view-sub{color:var(--text2);flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:.88rem;display:flex}.card-header-actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.card-type-tag{background:var(--accent-dim);color:var(--accent);border:1px solid #2a4a8a;border-radius:100px;margin-top:10px;padding:3px 12px;font-size:.75rem;font-weight:500;display:inline-block}.card-sections{flex-direction:column;gap:16px;display:flex}.card-section{background:var(--surface);border-radius:var(--radius);border-left:4px solid var(--border2);border-top:1px solid var(--border);border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:22px 26px}.section-blue{border-left-color:var(--accent)}.section-purple{border-left-color:var(--purple)}.section-teal{border-left-color:var(--teal)}.section-gold{border-left-color:var(--gold)}.section-red{border-left-color:var(--red);background:color-mix(in srgb, var(--surface) 90%, var(--red-dim))}.section-green{border-left-color:var(--green)}.section-cyan{border-left-color:var(--cyan)}.section-indigo{border-left-color:var(--indigo)}.card-section-header{align-items:center;gap:10px;margin-bottom:14px;display:flex}.section-icon{font-size:1rem}.card-section-title{text-transform:uppercase;letter-spacing:.09em;color:var(--text2);font-size:.75rem;font-weight:700}.card-section-body{flex-direction:column;gap:3px;display:flex}.field-line{color:var(--text);padding:2px 0;font-size:1rem;line-height:1.7}.field-spacer{height:8px}.line-red{color:var(--red);font-weight:500}.line-tip{color:var(--green);font-weight:500}.print-mode .app-header{display:none}.print-mode .card-section{break-inside:avoid}@media print{.app-header,.card-header-actions{display:none!important}.card-section{break-inside:avoid}body{color:#000;background:#fff}.card-section{background:#f9f9f9;border:1px solid #ccc}}.card-editor{flex-direction:column;gap:0;height:calc(100vh - 120px);display:flex}.editor-header{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius) var(--radius) 0 0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;display:flex}.editor-header-left{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.editor-title-input{border-radius:var(--radius-sm);color:var(--text);background:0 0;border:1px solid #0000;padding:6px 8px;font-size:1.05rem;font-weight:600}.editor-title-input:focus{border-color:var(--accent);background:var(--surface2)}.editor-type-input{border-radius:var(--radius-sm);color:var(--text3);background:0 0;border:1px solid #0000;padding:4px 8px;font-size:.8rem}.editor-type-input:focus{border-color:var(--border);background:var(--surface2);color:var(--text2)}.editor-header-right{align-items:center;gap:10px;display:flex}.fill-progress{color:var(--text3);font-size:.78rem}.editor-body{border:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);background:var(--surface);border-top:none;flex:1;display:flex;overflow:hidden}.editor-nav{border-right:1px solid var(--border);flex-shrink:0;width:180px;padding:8px 0;overflow-y:auto}.editor-nav-item{width:100%;color:var(--text2);border-left:3px solid #0000;align-items:center;gap:8px;padding:10px 14px;font-size:.82rem;transition:all .1s;display:flex;position:relative}.editor-nav-item:hover{background:var(--surface2);color:var(--text)}.editor-nav-item.active{background:var(--surface2);color:var(--text);border-left-color:var(--accent)}.editor-nav-item.filled{color:var(--text)}.nav-icon{flex-shrink:0;font-size:.9rem}.nav-label{flex:1}.nav-dot{background:var(--green);border-radius:50%;flex-shrink:0;width:6px;height:6px}.editor-main{flex:1;position:relative;overflow-y:auto}.editor-section{flex-direction:column;height:100%;padding:20px;display:none}.editor-section.visible{display:flex}.editor-section-header{align-items:center;gap:10px;margin-bottom:12px;display:flex}.editor-section-header h2{color:var(--text);font-size:.9rem;font-weight:600}.editor-textarea{border-radius:var(--radius-sm);flex:1;min-height:280px;padding:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:.9rem;line-height:1.7}.editor-hints{flex-direction:column;gap:4px;margin-top:10px;display:flex}.editor-hints p{color:var(--text3);font-size:.75rem}.screenshots-toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;display:flex}.screenshots-hint{color:var(--text3);font-size:.75rem}.screenshots-empty{color:var(--text3);text-align:center;border:2px dashed var(--border);border-radius:var(--radius);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:48px 24px;display:flex}.screenshots-empty span{font-size:2.5rem}.screenshots-empty p{max-width:320px;font-size:.85rem;line-height:1.5}.screenshots-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;display:grid;overflow-y:auto}.screenshot-item{flex-direction:column;gap:6px;display:flex}.screenshot-img-wrap{border-radius:var(--radius-sm);background:var(--surface3);aspect-ratio:16/9;position:relative;overflow:hidden}.screenshot-img{object-fit:cover;width:100%;height:100%;display:block}.screenshot-delete{color:#fff;opacity:0;cursor:pointer;background:#000000bf;border:none;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:1rem;line-height:1;transition:opacity .15s;display:flex;position:absolute;top:5px;right:5px}.screenshot-img-wrap:hover .screenshot-delete{opacity:1}.screenshot-caption-input{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text2);padding:5px 8px;font-size:.78rem}.card-screenshots-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;display:grid}.card-screenshot-item{flex-direction:column;gap:6px;display:flex}.card-screenshot-img{aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-sm);background:var(--surface3);cursor:zoom-in;width:100%;display:block}.card-screenshot-img:active{transform:scale(1.02)}.card-screenshot-caption{color:var(--text2);text-align:center;font-size:.75rem;line-height:1.3}.template-gallery{flex-direction:column;gap:24px;display:flex}.gallery-header h1{font-size:1.3rem;font-weight:700}.gallery-header p{color:var(--text2);margin-top:6px;font-size:.85rem}.gallery-filters{margin-bottom:4px}.template-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;display:grid}.template-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;flex-direction:column;gap:6px;padding:20px;transition:border-color .15s,transform .1s;display:flex}.template-card:hover{border-color:var(--accent);transform:translateY(-1px)}.template-card.sel{border-color:var(--accent);background:var(--accent-dim)}.template-card.blank{border-style:dashed}.template-icon{font-size:1.8rem}.template-name{color:var(--text);font-size:.9rem;font-weight:600;line-height:1.3}.template-category{color:var(--text3);font-size:.75rem}.template-preview{color:var(--accent);margin-top:2px;font-size:.75rem}.archive-section{justify-content:flex-end;padding-top:8px;display:flex}.archive-btn{color:var(--text3);border-color:#0000;font-size:.8rem}.archive-btn:hover{color:var(--red);border-color:var(--red-dim);background:var(--red-dim)}.login-screen{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:360px;box-shadow:var(--shadow);flex-direction:column;align-items:center;gap:16px;padding:48px 40px;display:flex}.login-logo{align-items:center;gap:10px;margin-bottom:4px;display:flex}.login-logo-mark{color:var(--accent);font-size:2rem}.login-logo-text{color:var(--text);letter-spacing:-.02em;font-size:1.5rem;font-weight:700}.login-tagline{color:var(--text3);text-align:center;margin-bottom:8px;font-size:.8rem}.btn-google{color:#3c4043;border-radius:var(--radius-sm);cursor:pointer;background:#fff;border:1px solid #dadce0;justify-content:center;align-items:center;gap:10px;width:100%;padding:10px 20px;font-size:.9rem;font-weight:500;transition:box-shadow .15s;display:flex}.btn-google:hover{box-shadow:0 1px 6px #0003}.btn-google:disabled{opacity:.6;cursor:not-allowed}.login-error{color:var(--red);text-align:center;font-size:.8rem}.access-denied-msg{color:var(--text2);text-align:center;margin-bottom:4px;font-size:.85rem;line-height:1.5}.loading-screen{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;display:flex}.loading-content{flex-direction:column;align-items:center;gap:12px;display:flex}.loading-logo{color:var(--accent);font-size:2.5rem}.loading-msg{color:var(--text3);font-size:.85rem}.user-menu-btn{background:var(--accent-dim);border:1px solid var(--accent);cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;transition:opacity .15s;display:flex;overflow:hidden}.user-menu-btn:hover{opacity:.8}.user-avatar-img{object-fit:cover;width:100%;height:100%;display:block}.user-avatar-initials{color:var(--accent);font-size:.8rem;font-weight:700}.theme-toggle-btn{font-size:1.1rem}@media (width<=700px){html{font-size:17px}.main-content{padding:16px 14px 56px}.header-inner{height:52px;padding:0 14px}.search-wrap{width:160px;display:none}.header-search-mobile{background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:0 14px 10px;display:flex}.header-search-mobile .search-icon{color:var(--text3);flex-shrink:0;font-size:1.2rem}.header-search-mobile .search-input{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);flex:1;width:auto;padding:10px 12px;font-size:1rem}.header-search-mobile .search-input:focus{border-color:var(--accent);outline:none}.header-search-mobile .search-clear{color:var(--text3);flex-shrink:0;padding:4px 6px;font-size:1.3rem}.dashboard-stats{grid-template-columns:repeat(3,1fr);gap:10px}.stat-card{padding:14px}.stat-num{font-size:1.6rem}.stat-label{font-size:.78rem}.surgeon-grid{grid-template-columns:1fr;gap:12px}.surgeon-card{padding:16px 18px}.surgeon-name{font-size:1.05rem}.surgeon-spec{font-size:.85rem}.surgeon-hospital{font-size:.88rem}.recent-grid{grid-template-columns:1fr 1fr}.recent-proc-name{font-size:.92rem}.recent-surgeon{font-size:.85rem}.procedure-row-name{font-size:1rem}.procedure-date{display:none}.procedure-main{padding:16px 14px}.procedure-row-actions{padding:0 6px 0 0}.card-view-header{padding:16px 18px}.card-view-title{font-size:1.3rem}.card-view-sub{font-size:.85rem}.card-header-top{flex-direction:column;gap:12px}.card-header-actions{flex-wrap:wrap;gap:8px;width:100%}.card-header-actions .btn-ghost,.card-header-actions .btn-primary{flex:1;justify-content:center;padding:10px 14px;font-size:.9rem}.card-section{padding:18px}.field-line{font-size:1.05rem;line-height:1.75}.card-section-title{font-size:.72rem}.editor-nav{width:52px}.nav-label{display:none}.editor-nav-item{justify-content:center;padding:12px 8px}.nav-icon{font-size:1.2rem}.editor-textarea{font-size:1rem}.checklist-item{padding:14px 8px}.checklist-item-text{font-size:1rem}.checklist-box{width:26px;height:26px;font-size:.95rem}.checklist-toggle-btn{padding:8px 14px;font-size:.9rem}.profile-header{padding:18px}.profile-name{font-size:1.3rem}.notes-body{font-size:1rem}.notes-section,.procedures-section{padding:16px 18px}}@media (width<=480px){html{font-size:17px}.recent-grid{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:1fr 1fr 1fr;gap:8px}.main-content{padding:12px 12px 56px}.card-section{padding:16px 14px}.card-view-header{padding:14px}.card-header-actions .btn-ghost,.card-header-actions .btn-primary{padding:10px 12px;font-size:.88rem}.procedure-main{min-height:56px;padding:18px 12px}.surgeon-card{padding:14px}.add-form{padding:24px 20px}}.checklist-toggle-btn{border:1px solid var(--border2);border-radius:var(--radius-sm);color:var(--text2);align-items:center;gap:6px;padding:6px 12px;font-size:.85rem;font-weight:500;transition:all .15s;display:flex}.checklist-toggle-btn:hover{border-color:var(--accent);color:var(--accent)}.checklist-toggle-btn.active{border-color:var(--accent);color:var(--accent);background:var(--accent-dim)}.checklist-toggle-btn.all-done{border-color:var(--green);color:var(--green);background:var(--green-dim)}.checklist-count{background:var(--surface3);border-radius:20px;padding:1px 7px;font-size:.75rem;font-weight:600}.checklist-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0 0 20px;overflow:hidden}.checklist-panel-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;padding:16px 20px 12px;display:flex}.checklist-panel-title h2{margin-bottom:2px;font-size:1rem;font-weight:600}.checklist-panel-sub{color:var(--text3);font-size:.78rem}.checklist-panel-actions{align-items:center;gap:8px;display:flex}.checklist-progress-bar{background:var(--surface3);width:100%;height:4px}.checklist-progress-fill{background:var(--green);border-radius:0 2px 2px 0;height:4px;transition:width .3s}.checklist-all-done{color:var(--green);background:var(--green-dim);border-bottom:1px solid var(--border);padding:10px 20px;font-size:.85rem;font-weight:500}.checklist-items{flex-direction:column;gap:2px;padding:8px 12px;display:flex}.checklist-item{border-radius:var(--radius-sm);text-align:left;border:1px solid #0000;align-items:flex-start;gap:12px;width:100%;padding:12px 8px;transition:background .1s;display:flex}.checklist-item:hover{background:var(--surface2)}.checklist-item.checked{opacity:.55}.checklist-box{border:2px solid var(--border2);width:22px;height:22px;color:var(--green);background:0 0;border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;font-size:.85rem;font-weight:700;transition:border-color .15s,background .15s;display:flex}.checklist-item.checked .checklist-box{border-color:var(--green);background:var(--green-dim)}.checklist-item-text{padding-top:1px;font-size:.95rem;line-height:1.5}.checklist-item.checked .checklist-item-text{color:var(--text3);text-decoration:line-through}.editor-hint-block{color:var(--text3);background:var(--surface2);border-radius:var(--radius-sm);border-left:3px solid var(--accent-dim);margin-bottom:16px;padding:10px 14px;font-size:.82rem}.checklist-editor-list{flex-direction:column;gap:8px;margin-bottom:14px;display:flex}.checklist-editor-item{align-items:center;gap:10px;display:flex}.checklist-editor-num{text-align:right;width:22px;color:var(--text3);flex-shrink:0;font-size:.8rem}.checklist-item-input{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);flex:1;padding:9px 12px;font-size:.9rem}.checklist-item-input:focus{border-color:var(--accent);outline:none}.card-last-edit-btn{color:var(--text2);font-size:inherit;border-radius:var(--radius-sm);align-items:center;gap:5px;margin:-1px -5px;padding:1px 5px;transition:color .15s,background .15s;display:inline-flex}.card-last-edit-btn:hover{color:var(--accent);background:var(--accent-dim)}.history-count{background:var(--surface3);color:var(--text3);border-radius:20px;padding:1px 6px;font-size:.72rem;font-weight:600}.changelog-section{border:1px solid var(--border);border-radius:var(--radius);margin-top:24px;overflow:hidden}.changelog-toggle{width:100%;color:var(--text2);background:var(--surface);justify-content:space-between;align-items:center;padding:13px 18px;font-size:.85rem;font-weight:600;transition:background .15s;display:flex}.changelog-toggle:hover{background:var(--surface2);color:var(--text)}.changelog-toggle-meta{color:var(--text3);align-items:center;gap:8px;font-size:.8rem;font-weight:400;display:flex}.changelog-chevron{font-size:1rem;line-height:1;transition:transform .2s;display:inline-block}.changelog-chevron.open{transform:rotate(90deg)}.changelog-list{border-top:1px solid var(--border)}.changelog-entry{border-bottom:1px solid var(--border);background:var(--surface);grid-template-rows:auto auto;grid-template-columns:1fr auto;gap:2px 12px;padding:12px 18px;display:grid}.changelog-entry:last-child{border-bottom:none}.changelog-entry.latest{background:var(--surface2)}.changelog-who{grid-column:1;align-items:center;gap:8px;display:flex}.changelog-name{font-size:.88rem;font-weight:500}.changelog-badge{text-transform:uppercase;letter-spacing:.04em;background:var(--accent-dim);color:var(--accent);border-radius:20px;padding:2px 6px;font-size:.68rem;font-weight:600}.changelog-when{color:var(--text2);text-align:right;grid-area:1/2;font-size:.82rem}.changelog-email{color:var(--text3);grid-column:1;font-size:.75rem}.admin-panel{flex-direction:column;gap:32px;max-width:580px;display:flex}.admin-panel-title{margin-bottom:4px;font-size:1.4rem;font-weight:700}.admin-panel-sub{color:var(--text2);font-size:.9rem}.admin-section-label{text-transform:uppercase;letter-spacing:.07em;color:var(--text3);margin-bottom:10px;font-size:.75rem;font-weight:700}.admin-add-row{gap:10px;display:flex}.admin-email-input{flex:1}.admin-feedback{margin-top:8px;font-size:.85rem}.admin-error{color:var(--red)}.admin-success{color:var(--green)}.admin-user-list{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.admin-user-row{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.admin-user-row:last-child{border-bottom:none}.admin-user-info{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.admin-user-email{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.admin-user-badges{flex-shrink:0;gap:5px;display:flex}.admin-role-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:4px;padding:2px 6px;font-size:.65rem;font-weight:700;line-height:1.4}.admin-role-badge.admin{background:var(--accent-dim);color:var(--accent)}.admin-role-badge.you{background:var(--surface3);color:var(--text3)}.admin-remove-btn{color:var(--red);border-color:#0000;flex-shrink:0}.admin-remove-btn:hover{border-color:var(--red-dim);background:var(--red-dim)}.admin-note{color:var(--text3);border-radius:var(--radius-sm);background:var(--surface2);border:1px solid var(--border);padding:14px 16px;font-size:.82rem;line-height:1.6}.admin-note code{color:var(--text2);font-family:monospace;font-size:.85em}.btn-icon.active{background:var(--accent-dim);border-color:var(--accent);color:var(--accent)}.updated-badge{background:var(--accent);color:#fff;letter-spacing:.05em;text-transform:uppercase;border-radius:4px;flex-shrink:0;align-items:center;padding:2px 6px;font-size:.65rem;font-weight:700;line-height:1;display:inline-flex}.procedure-row-name-wrap{align-items:center;gap:8px;display:flex}.recent-card-right{flex-shrink:0;align-items:center;gap:6px;display:flex}.card-screenshot-img{cursor:zoom-in}.lightbox-overlay{z-index:500;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#000000e0;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.lightbox-content{flex-direction:column;align-items:center;gap:14px;max-width:min(92vw,1100px);max-height:90vh;display:flex;position:relative}.lightbox-close{color:#fff;z-index:1;background:#ffffff26;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.4rem;line-height:1;transition:background .15s;display:flex;position:absolute;top:-14px;right:-14px}.lightbox-close:hover{background:#ffffff47}.lightbox-img-wrap{justify-content:center;align-items:center;max-height:calc(90vh - 80px);display:flex}.lightbox-img{object-fit:contain;border-radius:8px;max-width:100%;max-height:calc(90vh - 80px);display:block}.lightbox-arrow{color:#fff;z-index:1;background:#ffffff26;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.8rem;line-height:1;transition:background .15s;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.lightbox-arrow:hover:not(:disabled){background:#ffffff47}.lightbox-arrow:disabled{opacity:.25;cursor:default}.lightbox-prev{left:-56px}.lightbox-next{right:-56px}.lightbox-caption{color:#ffffffbf;text-align:center;max-width:600px;font-size:.88rem;line-height:1.4}.lightbox-dots{align-items:center;gap:8px;display:flex}.lightbox-dot{background:#ffffff59;border-radius:50%;flex-shrink:0;width:8px;height:8px;padding:0;transition:background .15s}.lightbox-dot.active{background:#fff}@media (width<=700px){.lightbox-prev{left:-4px}.lightbox-next{right:-4px}.lightbox-arrow{background:#00000073;width:38px;height:38px;font-size:1.5rem}}
