.panel-button{border:1px solid var(--ds-line-strong,#868fa0);border-radius:var(--ds-radius-control,8px);background:var(--ds-surface,#fff);min-width:44px;min-height:44px;color:var(--ds-ink,#111827);font:inherit;cursor:pointer;text-align:center;transition:background var(--ds-duration,.16s), border-color var(--ds-duration,.16s);box-sizing:border-box;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:14px;font-weight:600;line-height:1.4;display:inline-flex}.panel-button--sm{min-height:36px;padding:0 12px;font-size:13px}.panel-button--primary{background:var(--ds-ink,#111827);color:#fff;border-color:#0000}.panel-button--ghost{background:0 0;border-color:#0000}.panel-button--danger{background:var(--ds-surface,#fff);border-color:var(--ds-danger-text,#dc2626);color:var(--ds-danger-text,#b91c1c)}.panel-button:disabled{opacity:.55;cursor:not-allowed}.panel-button:not(:disabled):active{transform:scale(.98)}.panel-button svg{flex-shrink:0}.panel-icon-button{flex-shrink:0;width:44px;min-height:44px;padding:10px}.panel-button:focus-visible,.panel-form input:focus-visible,.panel-form select:focus-visible,.panel-form textarea:focus-visible,.panel-form summary:focus-visible{outline:3px solid var(--color-primary,#111827);outline-offset:3px}.panel-dialog-overlay{z-index:14000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#11182766;justify-content:center;align-items:stretch;display:flex;position:fixed;inset:0}.panel-dialog{background:var(--color-bg-card,#fff);width:100%;min-width:0;height:100dvh;color:var(--color-text-primary,#111827);outline:none;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 24px 64px #11182726}.panel-dialog-header{padding:max(16px, env(safe-area-inset-top)) 16px 16px;border-bottom:1px solid var(--color-border,#e5e7eb);flex-shrink:0;justify-content:space-between;align-items:start;gap:12px;display:flex}.panel-dialog-header h2{overflow-wrap:anywhere;margin:6px 0 0;font-size:20px;font-weight:700;line-height:1.3}.panel-dialog-header p{color:var(--color-text-secondary,#4b5563);margin:6px 0 0;font-size:13px}.panel-dialog-body{overscroll-behavior:contain;flex:1;min-height:0;padding:20px 16px;overflow-y:auto}.panel-dialog-footer{padding:12px 16px max(12px, env(safe-area-inset-bottom));border-top:1px solid var(--color-border,#e5e7eb);background:var(--color-bg-card,#fff);flex-direction:column-reverse;flex-shrink:0;gap:8px;display:flex}.panel-dialog-footer>.panel-button{width:100%}.panel-dialog-overlay.is-compact{align-items:center;padding:16px}.is-compact>.panel-dialog{border-radius:24px;max-width:420px;height:auto;max-height:calc(100dvh - 32px)}.panel-form{font-size:16px}.panel-form fieldset{border:0;min-width:0;margin:0 0 24px;padding:0}.panel-form legend{margin-bottom:16px;padding:0;font-size:16px;font-weight:700}.panel-form label{margin:0 0 6px;font-size:14px;font-weight:600;display:block}.panel-form input:not([type=checkbox]):not([type=file]),.panel-form select,.panel-form textarea{background:var(--color-bg-card,#fff);width:100%;min-height:48px;color:var(--color-text-primary,#111827);font:inherit;box-sizing:border-box;border:1px solid #8994a4;border-radius:10px;padding:11px 12px;font-size:16px}.panel-form input:disabled,.panel-form select:disabled{background:var(--color-bg-app,#f9fafb);color:#4b5563;cursor:not-allowed}.panel-form textarea{resize:vertical;min-height:88px}.panel-form .panel-field{min-width:0;margin-bottom:16px}.panel-form .panel-field:last-child{margin-bottom:0}.panel-field-row{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:16px;display:grid}.panel-field-row>.panel-field{margin:0}.panel-help{color:var(--color-text-secondary,#4b5563);margin:6px 0 12px;font-size:13px;line-height:1.6}.panel-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin-bottom:16px;padding:12px;font-size:14px}@media (hover:hover){.panel-button:not(:disabled):hover{background:var(--ds-tint,#f3f4f6)}.panel-button--primary:not(:disabled):hover{background:var(--ds-ink-2,#374151)}.panel-button--danger:not(:disabled):hover{background:var(--ds-danger-bg,#fef2f2)}}@media (width>=769px){.panel-button{min-height:40px}.panel-button--sm{min-height:32px}.panel-dialog-overlay{align-items:center;padding:24px}.panel-dialog{border-radius:24px;max-width:560px;height:auto;max-height:min(90dvh,900px)}.panel-dialog-header,.panel-dialog-body{padding:24px}.panel-dialog-footer{flex-direction:row;justify-content:flex-end;gap:12px;padding:16px 24px}.panel-dialog-footer>.panel-button{width:auto}.panel-field-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){.panel-button{transition:none}}.panel-button{white-space:normal;flex-shrink:0;text-decoration:none}.panel-button.is-loading{color:#0000;pointer-events:none;position:relative}.panel-button.is-loading:after{content:"";border:2px solid #94a3b8;border-top-color:currentColor;border-radius:50%;width:20px;height:20px;animation:.7s linear infinite panel-spin;position:absolute}@keyframes panel-spin{to{transform:rotate(360deg)}}.panel-modal-layout{pointer-events:none;outline:none;justify-content:center;width:100%;min-width:0;max-height:100dvh;display:flex}.panel-modal-layout>*{pointer-events:auto}.panel-modal-layout>.modal-card{border-radius:0!important;width:100%!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;box-shadow:0 24px 64px #11182726!important}.panel-modal-layout .modal-card-head{flex-shrink:0;gap:12px;padding:max(16px,env(safe-area-inset-top)) 16px 16px!important;background:#fff!important}.panel-modal-layout .modal-card-title{overflow-wrap:anywhere;line-height:1.3;white-space:normal!important;font-size:20px!important;font-weight:700!important}.panel-modal-layout .modal-card-body{overscroll-behavior:contain;min-height:0;padding:20px 16px!important}.panel-modal-layout .modal-card-foot{flex-wrap:wrap;flex-shrink:0;max-height:42dvh;overflow-y:auto;padding:12px 16px max(12px,env(safe-area-inset-bottom))!important;background:#fff!important;gap:8px!important}.panel-modal-layout .modal-card-foot .panel-button{margin:0!important}.panel-modal-layout .modal-card-foot>.panel-button{flex:100%}.panel-modal-overlay.is-compact{align-items:center}.panel-modal-overlay.is-compact .modal-card{border-radius:24px!important;max-width:440px!important;height:auto!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important}.panel-modal-layout :is(input,select,textarea){font-size:16px!important}@media (width>=769px){.panel-modal-layout{max-height:90dvh}.panel-modal-layout>.modal-card{width:100%!important;max-width:min(var(--panel-modal-width,900px),calc(100vw - 48px))!important;border-radius:24px!important;height:auto!important;max-height:90dvh!important}.panel-modal-layout .modal-card-head,.panel-modal-layout .modal-card-body{padding:24px!important}.panel-modal-layout .modal-card-foot{padding:16px 24px!important}.panel-modal-layout .modal-card-foot>.panel-button{flex:0 auto}}
