/* SEL.IA — Phone Diretoria screen. Faithful to prints. */

.ph-dir { display: flex; flex-direction: column; height: 100%; }
/* selected-director header row (pink tint) */
.ph-dhead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg,#fdecf2,#fef6f9); border-bottom: 1px solid #f4d9e4; flex-shrink: 0; position: relative; }
.ph-dhead.click { animation: ph-dclick 800ms cubic-bezier(0.34,1.56,0.64,1); }
.ph-dhav { width: 40px; height: 40px; border-radius: 9999px; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-dhav.td { background: #1f9a66; }
.ph-dhav.am { background: linear-gradient(135deg,#ef9b3f,#d91965); }
.ph-dhname { font-size: 16px; font-weight: 800; color: #102b4e; line-height: 1.2; }
.ph-dhrole { font-size: 12.5px; color: #9aa0a6; }
.ph-dhchev { margin-left: auto; color: #9aa0a6; }
/* tabs */
.ph-dtabs { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #eef0f2; flex-shrink: 0; }
.ph-dtab { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #5a6068; padding: 7px 12px; border-radius: 9999px; border: 1.5px solid transparent; }
.ph-dtab.on { color: #d91965; border-color: #d91965; }
/* body */
.ph-dbody { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.ph-dscroll { position: absolute; inset: 0; overflow: hidden; padding: 16px; }
.ph-dtitle { font-size: 21px; font-weight: 800; color: #102b4e; letter-spacing: -0.01em; margin-bottom: 14px; line-height: 1.2; }
.ph-card { background: #fff; border: 1px solid #eef0f2; border-radius: 14px; padding: 16px; box-shadow: 0 6px 18px rgba(8,18,35,0.05); margin-bottom: 14px; }
.ph-card-t { font-size: 16px; font-weight: 800; color: #102b4e; margin-bottom: 14px; }
/* donut */
.ph-donutwrap { display: flex; flex-direction: column; align-items: center; }
.ph-donut { position: relative; width: 200px; height: 200px; }
.ph-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-donut svg .ring { fill: none; stroke: #f0f1f3; stroke-width: 6; }
.ph-donut .hole { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph-donut .num { font-size: 30px; font-weight: 800; color: #102b4e; letter-spacing: -0.02em; }
.ph-donut .lbl { font-size: 12px; color: #9aa0a6; }
.ph-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; width: 100%; margin-top: 18px; }
.ph-leg { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5a6068; }
.ph-leg .sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
/* stats */
.ph-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-stat2 { background: #fff; border: 1px solid #eef0f2; border-radius: 14px; padding: 15px; }
.ph-stat2 .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.ph-stat2 .sub { font-size: 12px; margin-top: 2px; }
.ph-stat2 .l { font-size: 13px; color: #5a6068; margin-top: 4px; }
/* atos bars */
.ph-atorow { display: flex; align-items: center; gap: 10px; margin: 11px 0; font-size: 13px; }
.ph-atorow .al { width: 130px; color: #5a6068; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.ph-atorow .at { flex: 1; height: 14px; border-radius: 9999px; background: #f0f1f3; overflow: hidden; }
.ph-atorow .at span { display: block; height: 100%; border-radius: 9999px; transition: width 800ms cubic-bezier(0.22,1,0.36,1); }
.ph-atorow .av { width: 44px; text-align: right; font-weight: 700; color: #102b4e; flex-shrink: 0; }

/* directors list overlay — full panel (matches real app) */
.ph-dlist { position: absolute; inset: 0; z-index: 28; background: rgba(8,18,35,0.3); opacity: 0; transition: opacity 300ms ease; }
.ph-dlist.in { opacity: 1; }
.ph-dlist-sheet { position: absolute; inset: 0 30px 0 0; background: linear-gradient(180deg,#f3ebfb,#fbf7fe); display: flex; flex-direction: column; transform: translateX(-12px); opacity: 0; transition: transform 360ms ease, opacity 300ms ease; }
.ph-dlist.in .ph-dlist-sheet { transform: none; opacity: 1; }
.ph-dlist-x { position: absolute; top: 14px; right: 14px; color: #9aa0a6; z-index: 3; }
.ph-dlist-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 16px 14px 8px; }
.ph-dtd { display: flex; align-items: flex-start; gap: 11px; background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 13px; box-shadow: 0 6px 16px rgba(8,18,35,0.06); }
.ph-dtd .ph-dc-stats { margin-top: 6px; }
.ph-dlabel { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa0a6; margin: 16px 4px 10px; display: flex; align-items: center; gap: 7px; }
.ph-dcard2 { display: flex; align-items: flex-start; gap: 11px; background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 14px; margin-bottom: 11px; position: relative; transition: all .3s; }
.ph-dlist-foot { flex-shrink: 0; background: #fff; border-top: 1px solid #eef0f2; padding: 14px 18px 16px; }
.ph-dlist-foot .ft { font-size: 14px; font-weight: 800; color: #102b4e; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.ph-dlist-foot .fr { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: #5a6068; margin: 7px 0; }
.ph-dlist-foot .fr b { color: #102b4e; }
.ph-dcard2.sel { border-color: rgba(217,25,101,0.5); background: rgba(217,25,101,0.05); box-shadow: 0 8px 22px rgba(217,25,101,0.12); }
.ph-dcard2.click { animation: ph-dclick 900ms cubic-bezier(0.34,1.56,0.64,1); }
@keyframes ph-dclick { 0%{transform:scale(1);} 35%{transform:scale(1.04);box-shadow:0 0 0 6px rgba(217,25,101,0.18);} 100%{transform:scale(1);} }
.ph-dtap { position: absolute; left: 30px; top: 30px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 9999px; border: 2px solid #d91965; transform: scale(.4); opacity: .9; animation: ph-dtapr 720ms ease-out forwards; pointer-events: none; }
@keyframes ph-dtapr { to { transform: scale(3.4); opacity: 0; } }
.ph-dc-av { width: 44px; height: 44px; border-radius: 9999px; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-dc-nm { font-size: 15px; font-weight: 800; color: #102b4e; line-height: 1.2; }
.ph-dc-rl { font-size: 12.5px; color: #9aa0a6; margin-top: 1px; }
.ph-dc-mt { font-size: 12px; color: #9aa0a6; }
.ph-dc-stats { display: flex; gap: 16px; margin-top: 5px; font-size: 12.5px; color: #5a6068; }
.ph-dc-stats b { color: #102b4e; }

/* chat (analysis) */
.ph-dchat { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ph-dq { align-self: flex-end; display: flex; align-items: flex-start; gap: 9px; max-width: 88%; }
.ph-dq .b { background: #1a2332; color: #fff; font-size: 15px; line-height: 1.45; padding: 13px 16px; border-radius: 16px 16px 4px 16px; }
.ph-dq .av { width: 32px; height: 32px; border-radius: 9999px; background: #e6e7ea; color: #5a6068; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-da { display: flex; gap: 11px; }
.ph-da .av { width: 36px; height: 36px; border-radius: 9999px; background: linear-gradient(135deg,#d91965,#ef405b); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-da .nm { font-size: 14px; font-weight: 800; color: #102b4e; }
.ph-da .ts { font-size: 12px; color: #9aa0a6; margin-left: 7px; }
.ph-dah { font-size: 18px; font-weight: 800; color: #102b4e; margin: 8px 0 4px; line-height: 1.25; }
.ph-darpo { font-size: 15px; font-weight: 800; color: #d91965; margin-bottom: 8px; }
.ph-dap { font-size: 15px; line-height: 1.6; color: #1a1d22; margin: 0 0 10px; }
.ph-dap b { color: #102b4e; }
.ph-dquote { border-left: 3px solid #d91965; padding: 4px 0 4px 14px; margin: 4px 0; font-style: italic; font-size: 14.5px; line-height: 1.55; color: #5a6068; }
.ph-dablock { opacity: 0; transform: translateY(8px); animation: ph-liin 440ms ease forwards; }