.app-dialog{border:1px solid var(--border-subtle);background:var(--surface-primary);width:min(520px,100vw - 24px);max-height:min(82vh,760px);color:var(--text-primary);border-radius:14px;padding:0;overflow:auto;box-shadow:0 28px 90px #12213d55}.app-dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#14213d8c}.app-dialog-content{gap:18px;padding:24px;display:grid}.app-dialog h2{margin:0;font-size:20px;line-height:1.3}.app-dialog p{color:var(--text-secondary);margin:0;line-height:1.5}.app-dialog label{gap:7px;font-size:13px;font-weight:650;display:grid}.app-dialog input{border:1px solid var(--border-default);width:100%;min-height:42px;font:inherit;color:inherit;background:var(--surface-primary);border-radius:8px;padding:9px 11px}.app-dialog input:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.app-dialog footer{justify-content:flex-end;gap:9px;padding-top:6px;display:flex}.app-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.app-type-grid button{text-align:left;align-items:center;gap:10px;display:flex}.app-type-grid button span{background:var(--surface-secondary);width:28px;height:28px;color:var(--accent-primary-hover);border-radius:6px;place-items:center;font-weight:700;display:grid}.app-type-grid button:hover,.app-type-grid button.is-selected{border-color:var(--accent-primary);background:var(--surface-secondary)}.app-type-popover{z-index:2100;border:1px solid var(--border-subtle);background:var(--surface-primary);width:286px;color:var(--text-primary);border-radius:11px;gap:13px;padding:16px;display:grid;position:fixed;overflow:auto;box-shadow:0 20px 60px #12213d44}.app-type-popover h2{margin:0;font-size:15px}.app-type-popover .app-type-grid{grid-template-columns:1fr;gap:4px}.app-type-popover .app-type-grid button{background:var(--surface-primary);min-height:34px;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer;border:1px solid #0000;border-radius:6px;align-items:center;gap:10px;padding:5px 8px;font-size:13px;display:flex}.app-type-popover .app-type-grid button span{background:var(--surface-secondary);width:25px;height:25px;color:var(--accent-primary-hover);border-radius:5px;place-items:center;font-weight:700;display:grid}.app-type-popover .app-type-grid button:hover,.app-type-popover .app-type-grid button.is-selected{border-color:var(--accent-primary);background:var(--surface-secondary)}.app-type-popover .app-type-grid button:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}@media (max-width:600px){.app-dialog{border-radius:16px 16px 0 0;width:100%;max-height:88dvh;margin:0 auto;position:fixed;top:auto;bottom:0}.app-dialog-content{padding:20px}.app-type-popover{border-radius:16px 16px 0 0;width:100%;max-height:82dvh;top:auto;bottom:0;left:0}.app-type-popover .app-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
