/* Logo oficial T2S e Rubik local. Ciano funcional derivado: #00779A. */
@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/font.woff2') format('woff2');
}
:root {
  --cyan: #00B4E8;
  --blue: #3264FF;
  --gray: #B9BDC6;
  --graphite: #3F3F3F;
  --paper: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #3F3F3F;
  --muted: #5F6673;
  --line: #DDE1E8;
  --control-line: #85909F;
  --link: #00779A;
  --header: #182330;
  font-family: Rubik, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.55; min-width: 280px; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button-link { border: 1px solid var(--control-line); border-radius: 7px; padding: .62rem .95rem; background: var(--surface); color: var(--ink); cursor: pointer; min-height: 44px; font-weight: 500; }
button:hover, .button-link:hover { background: #EEF1F5; }
button.primary, .button-link.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
button.primary:hover { background: #254FD4; }
button:disabled { opacity: .65; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.17; letter-spacing: -.03em; }
h2 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
h3 { font-size: 1.07rem; font-weight: 600; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 100; padding: 12px 18px; background: #fff; border-radius: 5px; }
.skip-link:focus { transform: none; }
.site-header { background: var(--header); color: #fff; border-bottom: 3px solid var(--cyan); }
.header-inner { max-width: 1440px; margin: auto; padding: 18px 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: inline-flex; padding: 6px 0; }
.brand img { display: block; width: 112px; height: 40px; object-fit: contain; }
.product-name { border-left: 1px solid #667280; padding-left: 24px; font-size: .93rem; color: var(--gray); }
.account { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: .875rem; flex-wrap: wrap; }
.account a { color: #fff; padding: 8px 2px; }
.account span { overflow-wrap: anywhere; }
main { max-width: 1440px; margin: auto; padding: 0 32px 40px; min-height: calc(100vh - 180px); }
.notice { padding: 12px 16px; border-left: 3px solid var(--link); border-radius: 0 5px 5px 0; background: #EDF5F8; margin: 22px 0; font-size: .92rem; }
.notice:empty { display: none; }
.notice.error { color: #923048; background: #FFF2F5; border-color: #923048; }
.landing { max-width: 820px; margin: clamp(32px, 9vh, 100px) auto 48px; }
.landing-card { background: var(--surface); padding: clamp(24px, 6vw, 60px); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; }
.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--link); margin-bottom: 20px; }
.lead { font-size: 1.1rem; max-width: 600px; margin-bottom: 28px; }
.landing-card .primary { margin-bottom: 20px; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.landing-card .small { max-width: 540px; margin-bottom: 0; }
.landing-note { margin-top: 24px; display: flex; align-items: flex-start; justify-content: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.decorative-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; background: var(--cyan); }
.empty { color: var(--muted); padding: 16px; background: var(--paper); border: 1px dashed var(--line); border-radius: 7px; font-size: .9rem; }
.site-footer { max-width: 1440px; padding: 22px 32px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.portal-toolbar { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin: 28px 0; }
.project-picker { flex: 1; max-width: 440px; min-width: 180px; }
label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 6px; }
input, select, textarea { display: block; width: 100%; min-height: 44px; border: 1px solid var(--control-line); border-radius: 6px; padding: 9px 11px; color: var(--ink); background: #fff; }
textarea { min-height: 100px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; accent-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 20px; min-width: 0; }
.panel > h2 { margin-bottom: 12px; }
.admin-panel > summary { color: var(--ink); font-size: 1.1rem; font-weight: 500; padding: 0; line-height: 44px; }
.admin-panel > summary span { margin-left: 16px; font-weight: 400; }
.admin-panel[open] > summary { margin-bottom: 18px; }
@media (max-width: 640px) { .admin-panel > summary span { display: block; margin: 0; line-height: 1.5; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.form-grid > button { justify-self: start; }
.full { grid-column: 1 / -1; }
.form-grid h3 { margin-bottom: 0; }
.stack { display: grid; gap: 10px; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0 20px; }
.project-heading .eyebrow { margin-bottom: 8px; }
.project-heading h2 { font-size: 1.8rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.project-meta, #project-meta { overflow-wrap: anywhere; }
.conversation-button, .user-button { text-align: left; }
.admin-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; }
.admin-grid > section { min-width: 0; }
.field-hint { margin: 5px 0 0; color: var(--muted); font-size: .76rem; font-weight: 400; }
.form-hint { margin: 16px 0 12px; }
.allocation-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-nav { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 18px; }
.section-nav a { padding: 10px 14px; font-size: .86rem; border-radius: 6px; }
.section-nav a:hover { background: #EBEEF4; }
.section-heading { display: flex; gap: 18px; align-items: start; justify-content: space-between; }
.section-heading h3 { margin-bottom: 6px; }
.project-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button-link { display: inline-flex; align-items: center; text-decoration: none; }
.backup-actions { margin-bottom: 18px; }
.files-layout { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 2fr); gap: 24px; }
.file-entry { display: flex; flex-direction: column; gap: 4px; }
.file-entry .small { padding-left: 4px; }
.file-button { text-align: left; overflow-wrap: anywhere; }
#file-path { font-size: .9rem; overflow-wrap: anywhere; margin: 10px 0; }
#file-preview { min-width: 0; }
#file-content { max-height: 620px; overflow: auto; }
.audit-record { border-bottom: 1px solid var(--line); }
@media (max-width: 850px) { .files-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .section-heading { flex-wrap: wrap; } }
#schedule-list { margin-top: 16px; }
#schedule-form { padding: 12px 0 20px; }
@media (max-width: 960px) { .project-columns { grid-template-columns: 1fr; gap: 0; } }
.conversation-layout { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 2fr); gap: 26px; }
.conversation-layout aside { min-width: 0; padding-right: 24px; border-right: 1px solid var(--line); }
.compact-form { margin-top: 24px; }
.conversation-button[aria-pressed=true] { border-color: var(--blue); background: #EDF1FF; }
.conversation-button, .user-button { overflow-wrap: anywhere; }
.messages { min-height: 130px; max-height: 520px; overflow-y: auto; padding: 4px 4px 4px 0; margin: 0 0 18px; }
.message { border-left: 3px solid var(--gray); padding: 12px 16px; margin-bottom: 12px; border-radius: 0 6px 6px 0; background: var(--paper); }
.message-role { color: var(--link); font-size: .76rem; font-weight: 500; margin-bottom: 6px; }
.message p:last-child { margin-bottom: 0; }
.preserve-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.record { padding: 18px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.record p { margin: 10px 0; }
.record-heading { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.status-label { color: var(--link); background: #EDF5F8; border-radius: 4px; padding: 4px 8px; font-size: .8rem; font-weight: 500; }
.plain-output { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); padding: 14px; border-radius: 6px; font: .85rem/1.55 ui-monospace, Consolas, monospace; }
.technical { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: .86rem; color: var(--link); }
.member-row { margin: 0; overflow-wrap: anywhere; }
#task-form > button { justify-self: start; }
@media (max-width: 850px) { .conversation-layout { grid-template-columns: 1fr; } .conversation-layout aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; } }
@media (max-width: 850px) { .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .panel { padding: 18px; } }
@media (max-width: 640px) {
  .header-inner { padding: 12px 18px; gap: 14px; }
  .product-name { padding-left: 14px; }
  .account { width: 100%; margin: 0; justify-content: space-between; }
  main { padding: 0 18px 28px; }
  .site-footer { padding: 20px 18px; }
  .landing-note { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
