/* Stage 5: precise targeted fixes — preserve approved Tubedirector appearance. */
/* Calendar navigator: fixed three-part flex sizing, no glyph collision and compact human-readable dates. */
#page-planejamento .week-navigator{display:grid;grid-template-columns:48px 1fr 48px;gap:0;align-items:center;min-width:0;width:min(100%,370px);height:47px;margin-left:auto;overflow:hidden;border-radius:25px;font-size:13px;line-height:1.2}
#page-planejamento .week-navigator button{width:48px;height:47px;font-size:25px;grid-row:1;z-index:1}
#page-planejamento .week-navigator button:first-child{grid-column:1}#page-planejamento .week-navigator button:last-child{grid-column:3}
#page-planejamento .week-navigator .nav-calendar{display:none!important}
#page-planejamento #weekNavigatorLabel{grid-row:1;grid-column:2;text-align:center;display:block;padding:0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;letter-spacing:-.025em;font-weight:650;min-width:0}
#page-planejamento .planning-header p{font-size:16px;letter-spacing:-.02em}
/* Tighten production cards and restore glass depth without cramped text */
#page-producao .fresh-production-column-head{gap:7px;padding:12px 12px;min-height:72px}
#page-producao .fresh-stage-heading{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#page-producao .fresh-stage-heading strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-producao .fresh-stage-heading small{font-size:10px;color:#aabce4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-producao .fresh-stage-count{margin-left:auto;flex:none}
#page-producao .fresh-stage-right-icon{order:3;flex:none;margin-left:0;width:30px;height:30px;border-radius:9px}
#page-producao .fresh-production-column-body{gap:10px;padding:12px 10px;min-height:190px}
#page-producao .fresh-production-liquid{padding:13px;border-radius:15px;border-color:rgba(116,197,255,.45);background:linear-gradient(120deg,rgba(33,102,150,.37),rgba(20,36,83,.73) 58%,rgba(94,31,144,.37));box-shadow:inset 0 1px 8px rgba(114,217,255,.12),0 2px 13px rgba(4,11,49,.22)}
#page-producao .fresh-production-main{display:flex;align-items:flex-start;gap:9px;min-width:0}
#page-producao .fresh-production-main .fresh-avatar,#page-producao .fresh-production-main .fresh-avatar-wrapper{flex:0 0 30px;width:30px;height:30px;min-width:30px;min-height:30px;border-radius:50%;object-fit:cover}
#page-producao .fresh-production-content{min-width:0;flex:1}
#page-producao .fresh-production-content strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere;white-space:normal;max-height:52px;overflow:hidden}
#page-producao .fresh-production-content small{font-size:10px;margin-top:4px;line-height:1.45}
#page-producao .fresh-production-tags{gap:5px;margin-top:9px}
#page-producao .fresh-production-tags span{font-size:10px;line-height:1.2;padding:5px 8px;white-space:nowrap}
#page-producao .fresh-card-edit{align-self:flex-start;flex:0 0 29px;width:29px;height:29px;min-width:29px;border-radius:9px;display:grid;place-items:center}
#page-producao .fresh-stage-empty .fresh-empty{opacity:.72}
/* Orb: stable Saturn-like tilt, no entire ellipse spinning through 360 degrees. */
.orb-scene .fresh-orbit-ring{display:none!important}
.orb-scene .td-orbit-arc{position:absolute;pointer-events:none;left:50%;top:55%;width:438px;height:130px;border-radius:50%;transform:translate(-50%,-50%) rotate(-8deg);box-shadow:0 0 15px rgba(25,208,255,.12);border:2px solid transparent;will-change:auto}
.orb-scene .td-orbit-arc.back{z-index:2;border-top-color:rgba(157,96,255,.75);filter:drop-shadow(0 0 6px rgba(203,66,255,.65));clip-path:inset(0 0 49% 0)}
.orb-scene .td-orbit-arc.front{z-index:6;border-bottom-color:rgba(41,238,255,.95);filter:drop-shadow(0 0 8px rgba(44,230,255,.7));clip-path:inset(49% 0 0 0)}
.orb-scene .td-orbit-orbiting-dot{position:absolute;left:50%;top:55%;width:8px;height:8px;border-radius:100%;z-index:7;background:#d4fdff;box-shadow:0 0 7px 3px rgba(62,244,255,.8),0 0 19px 6px rgba(100,121,255,.55);pointer-events:none;offset-path:ellipse(219px 65px at 0 0);offset-rotate:0deg;transform:rotate(-8deg);animation:td-saturn-dot 13s linear infinite}
.orb-scene .td-orbit-orbiting-dot.secondary{width:5px;height:5px;background:#ffcbff;box-shadow:0 0 8px #db77ff;animation-duration:18s;animation-delay:-7s}
@keyframes td-saturn-dot{from{offset-distance:0%}to{offset-distance:100%}}
@media(prefers-reduced-motion:reduce){.orb-scene .td-orbit-orbiting-dot{animation:none;opacity:.4}}
@media(max-width:900px){#page-planejamento .week-navigator{margin:10px 0 0;width:100%}}
/* Commercial foundation: honest, non-billing previews within the existing settings page */
.td-settings-board{display:flex;flex-direction:column;gap:20px;max-width:1150px;margin:0 auto 40px}
.td-settings-section{padding:25px 28px;border:1px solid rgba(132,176,250,.34);border-radius:22px;background:linear-gradient(115deg,rgba(13,42,90,.68),rgba(50,29,106,.58));display:flex;justify-content:space-between;align-items:center;gap:20px}
.td-settings-section small{letter-spacing:.18em;color:#70f0ff;font-size:10px;font-weight:750}
.td-settings-section h2{font-size:23px;color:#f5f7ff;margin:8px 0}.td-settings-section p{font-size:13px;color:#b4c5e6;max-width:740px;line-height:1.6;margin:0}
.td-settings-actions{display:flex;gap:8px;flex-wrap:wrap}
.td-settings-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.td-settings-kpis>div{border:1px solid rgba(128,168,248,.25);border-radius:17px;background:rgba(19,38,83,.6);padding:18px;min-width:0}
.td-settings-kpis small{display:block;color:#9badcf;font-size:10px;margin-bottom:9px}.td-settings-kpis strong{display:block;overflow-wrap:anywhere;font-size:14px}
.td-commercial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.td-commercial-plan{border:1px solid rgba(141,160,249,.35);border-radius:21px;padding:25px;background:linear-gradient(165deg,rgba(12,48,94,.72),rgba(49,25,92,.7));box-shadow:inset 0 1px 10px rgba(151,188,255,.06)}
.td-commercial-plan:nth-child(2){border-color:rgba(192,110,255,.7);box-shadow:0 0 20px rgba(143,49,225,.13)}
.td-plan-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.td-plan-title h3{font-size:17px;letter-spacing:.12em;margin:0}.td-plan-title small{font-size:10px;color:#a9b7dc}
.td-plan-price{display:flex;align-items:baseline;gap:6px;margin-top:20px}.td-plan-price strong{font-size:31px;color:#57e4ff}.td-plan-price span{color:#b4c7eb;font-size:12px}
.td-commercial-plan p{font-size:12px;color:#b4c7e5;min-height:36px}.td-commercial-plan ul{padding:15px 0 0;margin:12px 0 0;list-style:none;border-top:1px solid rgba(156,184,255,.22);display:flex;flex-direction:column;gap:13px}.td-commercial-plan li{font-size:12px;color:#d2e3ff}
@media(max-width:1000px){.td-settings-kpis{grid-template-columns:repeat(2,1fr)}.td-commercial-grid{grid-template-columns:1fr}.td-settings-section{flex-wrap:wrap}}
