/* PersonalOS 23 shared UI system: Timeline navigation, profile cards and action buttons. */
/* PersonalOS 23 — consistent hierarchy, profile surfaces, and action controls. */
.p23-nav-inline-children{display:grid;gap:3px;margin:3px 0 8px 13px;padding:4px 0 4px 11px;border-left:1px solid var(--border-color,#dbe3ed);min-width:0;}
.p23-nav-inline-children .nav-item-wrap{min-width:0;}
.p23-nav-inline-children .nav-subitem{width:100%;min-height:36px;padding:7px 10px;border:1px solid transparent;border-radius:9px;font:inherit;font-size:12px;color:var(--text-secondary,#607064);}
.p23-nav-inline-children .nav-subitem.active,.p23-nav-inline-children .nav-subitem:hover{background:var(--primary-soft,#eaf4ff);color:var(--primary,#2678e8);}
.p23-nav-node.has-active-child>.nav-item{background:var(--primary-soft,#eaf4ff);color:var(--primary,#2678e8);}
.p23-nav-parent-home{padding:4px 0 6px;margin-bottom:4px;border-bottom:1px solid var(--border-color,#e3eaf2);}
.p23-content-subnav{display:grid;gap:10px;margin:0 0 18px;padding:15px 16px;border:1px solid var(--border-color,#dbe3ed);border-radius:14px;background:var(--surface-card,#fff);}
.p23-content-subnav-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--text-primary,#193550);}
.p23-content-subnav-heading strong{font-size:12px;font-weight:800;}
.p23-content-subnav-heading span{font-size:10px;color:var(--text-secondary,#718096);}
.p23-content-tree{display:grid;gap:4px;min-width:0;}
.p23-content-tree-node{display:grid;gap:3px;min-width:0;}
.p23-content-tree-node>.p23-content-tree{margin-left:14px;padding-left:12px;border-left:1px solid var(--border-color,#e0e7ef);}
.p23-content-tree-button{width:100%;justify-content:flex-start;min-height:36px;padding:7px 10px;border-radius:9px;text-align:left;}
.p23-content-tree-button.is-active,.p23-content-tree-node.has-active-descendant>.p23-content-tree-button{background:var(--primary-soft,#eaf4ff);color:var(--primary,#2678e8);}
.p23-profile-sections{align-items:stretch;gap:16px;}
.p23-profile-sections>.p2-detail-group{box-sizing:border-box;min-width:0;margin:0;padding:16px;border:1px solid var(--border-color,#d9e1eb);border-left:1px solid var(--border-color,#d9e1eb);border-radius:14px;background:var(--surface-card,#fff);box-shadow:0 1px 2px rgba(15,35,65,.035);}
.p23-profile-sections .p2-detail-group h3{margin:0 0 12px;padding:0 0 9px;border-bottom:1px solid var(--border-color,#e5ebf2);color:var(--text-primary,#25435f);font-size:12px;}
.p23-profile-sections .p22-profile-value-card,.p23-profile-sections .p2-bank-account-card{box-sizing:border-box;min-height:58px;padding:12px 13px;border:1px solid var(--border-color,#d9e1eb);border-radius:12px;background:var(--surface-card,#fff);box-shadow:0 1px 2px rgba(15,35,65,.035);}
.p23-profile-sections .p2-bank-account-card{align-items:flex-start;}
.p23-profile-sections .p2-bank-account-card>div{gap:5px;}
.p23-profile-sections .p2-bank-account-card strong{color:var(--text-primary,#16324f);font-size:12px;}
.p23-profile-sections .p2-bank-account-card code,.p23-profile-sections .p2-bank-account-card>div>span:not(.p2-bank-account-type){color:var(--text-secondary,#718096);font-size:11px;}
.p23-nav-style-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.p23-nav-style-grid .p18-choice{min-height:165px;}

/* A shared button contract across modules. The blue action in the approved reference is the primary visual standard. */
button.primary-button,button.secondary-button,button.ghost-button,button.danger-button,
button.p18-button,button.p18-button-primary,button.p18-button-quiet,button.p18-button-danger,
button.section-link,button.text-button,button.p21-action-primary,button.p21-action-secondary,
label.p18-button.p18-file-button{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:32px;padding:0 12px;border-width:1px;border-style:solid;border-radius:8px;
  font-family:inherit;font-size:11px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
button.primary-button,button.p18-button-primary,button.p21-action-primary{
  background:#2678e8;border-color:#2678e8;color:#fff;box-shadow:0 3px 9px rgba(38,120,232,.18);
}
button.primary-button:hover,button.p18-button-primary:hover,button.p21-action-primary:hover{
  background:#155fc4;border-color:#155fc4;color:#fff;
}
button.secondary-button,button.p18-button:not(.p18-button-primary):not(.p18-button-quiet):not(.p18-button-danger),
label.p18-button.p18-file-button,button.section-link,button.text-button,button.p21-action-secondary{
  background:rgba(38,120,232,.055);border-color:rgba(38,120,232,.36);color:#2466bd;
}
button.secondary-button:hover,button.p18-button:not(.p18-button-primary):not(.p18-button-quiet):not(.p18-button-danger):hover,
label.p18-button.p18-file-button:hover,button.section-link:hover,button.text-button:hover,button.p21-action-secondary:hover{
  background:rgba(38,120,232,.11);border-color:#2678e8;color:#155fc4;
}
button.ghost-button,button.p18-button-quiet{
  background:rgba(38,120,232,.055);border-color:rgba(38,120,232,.24);color:#2466bd;box-shadow:none;
}
button.ghost-button:hover,button.p18-button-quiet:hover{background:rgba(38,120,232,.11);border-color:#2678e8;color:#155fc4;}
button.danger-button,button.p18-button-danger{
  background:#fff7f7;border-color:#edc9cd;color:#b54750;
}
button.danger-button:hover,button.p18-button-danger:hover{background:#fff0f0;border-color:#d99aa2;color:#a12d3a;}
button.primary-button:focus-visible,button.secondary-button:focus-visible,button.ghost-button:focus-visible,
button.danger-button:focus-visible,button.p18-button:focus-visible,button.section-link:focus-visible,
button.text-button:focus-visible,button.p21-action-primary:focus-visible,button.p21-action-secondary:focus-visible,
label.p18-button:focus-within{outline:3px solid rgba(38,120,232,.22);outline-offset:2px;}
button.primary-button:disabled,button.secondary-button:disabled,button.ghost-button:disabled,button.danger-button:disabled,
button.p18-button:disabled,button.section-link:disabled,button.text-button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none;}
@media(max-width:700px){.p23-nav-style-grid{grid-template-columns:1fr;}.p23-profile-sections{grid-template-columns:1fr;}.p23-content-subnav{padding:12px;}.p23-content-tree-node>.p23-content-tree{margin-left:8px;padding-left:9px;}}
.app-shell.sidebar-collapsed .p23-nav-inline-children{display:none;}

/* Release guard: override legacy P21/P22 important declarations after all legacy stylesheets. */
button.primary-button,button.p18-button-primary,button.p21-action-primary,
button.primary-button:hover,button.p18-button-primary:hover,button.p21-action-primary:hover{
  min-height:32px!important;border-radius:8px!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;
  background:#2678e8!important;border:1px solid #2678e8!important;color:#fff!important;
}
button.secondary-button,button.p18-button:not(.p18-button-primary):not(.p18-button-quiet):not(.p18-button-danger),
button.p21-action-secondary,label.p18-button.p18-file-button{
  min-height:32px!important;border-radius:8px!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;
  background:rgba(38,120,232,.055)!important;border:1px solid rgba(38,120,232,.36)!important;color:#2466bd!important;box-shadow:none!important;
}
button.secondary-button:hover,button.p18-button:not(.p18-button-primary):not(.p18-button-quiet):not(.p18-button-danger):hover,
button.p21-action-secondary:hover,label.p18-button.p18-file-button:hover{
  background:rgba(38,120,232,.11)!important;border-color:#2678e8!important;color:#155fc4!important;
}
button.ghost-button,button.p18-button-quiet{
  min-height:32px!important;border-radius:8px!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;
  background:rgba(38,120,232,.055)!important;border:1px solid rgba(38,120,232,.24)!important;color:#2466bd!important;box-shadow:none!important;
}
button.danger-button,button.p18-button-danger{
  min-height:32px!important;border-radius:8px!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;
  background:#fff7f7!important;border:1px solid #edc9cd!important;color:#b54750!important;box-shadow:none!important;
}
button.icon-button,button.close-modal,button.p12-modal-close,button.pl-viewer-close,button.fc-icon-action{
  box-sizing:border-box;min-width:32px;min-height:32px;padding:0;border-radius:8px;font-family:inherit;font-weight:700;
}
button:focus-visible,label.p18-button:focus-within{outline:3px solid rgba(38,120,232,.25)!important;outline-offset:2px!important;}
