/* IRENE Team Portal */
:root { --pink: #E477AB; --orange: #E2582A; --deep: #BF4519; --ink: #372F30; --soft: #62585A; --cream: #FFF6F1; --blush: #FDEDF3; --line: #EFDFD8; --grad: linear-gradient(90deg, var(--pink), var(--orange)); --radius: 14px; --shadow: 0 8px 24px rgba(55, 47, 48, .08); --display: "Montserrat", Arial, sans-serif; --body: "Quicksand", Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-weight: 500; font-size: 1.02rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
a { color: var(--deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
.muted { color: var(--soft); } .small { font-size: .9rem; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .92rem; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid var(--deep); background: var(--deep); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.btn.outline { background: #fff; color: var(--deep); } .btn.outline:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.btn.small { padding: .45rem 1rem; font-size: .82rem; }

/* layout */
body.app { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 1.25rem 1rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand img { height: 78px; width: auto; display: block; margin: 0 auto; }
.side-title { text-align: center; font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--deep); margin: .6rem 0 1rem; }
.side nav a { display: block; padding: .5rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.side nav a:hover { background: var(--cream); color: var(--deep); }
.side nav a.on { background: var(--grad); color: #fff; }
.logout { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.who { margin: 0 0 .6rem; font-weight: 700; } .who span { font-weight: 500; color: var(--soft); font-size: .88rem; }
.main { padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 1080px; width: 100%; }
.page-head { margin-bottom: 1.5rem; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--deep); margin: 0 0 .4rem; }
.eyebrow a { text-decoration: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.1rem, 2.5vw, 1.75rem); margin-bottom: 1.25rem; }
.card.notice { border-left: 6px solid var(--orange); }
.card.narrow { max-width: 480px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.tile:hover { transform: translateY(-2px); }
.tile p { color: var(--soft); font-size: .95rem; margin: 0 0 .8rem; flex: 1; }
.tile span { font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--deep); }
.search { display: flex; gap: .5rem; max-width: 560px; margin-top: 1rem; }
.doc-list { display: grid; gap: .7rem; }
.doc-row { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; text-decoration: none; color: var(--ink); }
.doc-row:hover { border-color: var(--orange); }
.doc-row div { flex: 1; } .doc-row h2 { font-size: 1.02rem; margin: 0 0 .15rem; } .doc-row p { margin: 0; color: var(--soft); font-size: .92rem; }
.tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--blush); color: var(--deep); white-space: nowrap; }
.tag.done { background: #E3F4E8; color: #1F6B3A; } .tag.off { background: #eee; color: #666; }

/* documents */
.doc h2 { margin-top: 1.8em; padding-bottom: .35em; border-bottom: 3px solid var(--blush); } .doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.4em; }
.doc blockquote { margin: 1rem 0; padding: .8rem 1rem; background: var(--blush); border-left: 5px solid var(--pink); border-radius: 8px; }
.doc li { margin-bottom: .3rem; }
.checklist { list-style: none; padding: 0; }
.checklist label { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem .4rem; border-radius: 8px; cursor: pointer; }
.checklist label:hover { background: var(--cream); }
.checklist input { width: 1.15rem; height: 1.15rem; margin-top: .22rem; accent-color: var(--deep); flex: none; }
.checklist input:checked + span { color: var(--soft); text-decoration: line-through; }
.ph { background: #FFF1C9; border-radius: 4px; padding: 0 .25em; font-weight: 700; font-size: .92em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
th { background: var(--cream); font-family: var(--display); font-size: .82rem; }
.matrix td.yes { color: #1F6B3A; font-weight: 700; text-align: center; } .matrix td.no { color: #bbb; text-align: center; } .matrix th { text-align: center; } .matrix th:first-child { text-align: left; }
.ack { background: #fff; border: 2px dashed var(--pink); border-radius: var(--radius); padding: 1.1rem 1.25rem; }

/* forms */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; margin-bottom: 1.1rem; }
.stack > * + * { margin-top: .9rem; }
.field.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: .25rem; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search], select, textarea { width: 100%; font: inherit; color: var(--ink); padding: .65rem .8rem; border: 1.5px solid #D9C7C0; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(228, 119, 171, .3); }
.flash { padding: .75rem 1rem; border-radius: 10px; font-weight: 600; margin: 0 0 1rem; }
.flash.ok { background: #E3F4E8; color: #1F6B3A; } .flash.err { background: #FBE4E2; color: #9B1C14; } .flash.warn { background: #FFF1C9; color: #5C4500; }
.flash code { font-size: 1.1rem; background: #fff; padding: .1rem .4rem; border-radius: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0 0 1rem; } .facts dt { font-weight: 700; } .facts dd { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: .25rem 0; }
.inline { display: inline; }

/* login */
body.auth { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(135deg, var(--blush), var(--cream)); }
body.auth .main { padding: 1.25rem; max-width: 460px; }
.auth-card { background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(55, 47, 48, .14); padding: 2rem; text-align: center; }
.auth-card form { text-align: left; margin: 1.25rem 0; } .auth-card .btn { width: 100%; }
.auth-logo { height: 110px; width: auto; margin: 0 auto .5rem; display: block; }

@media (max-width: 900px) {
  body.app { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { display: flex; flex-wrap: wrap; gap: .25rem; } .side nav a { padding: .4rem .7rem; font-size: .9rem; }
  .logout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; } .who { margin: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .tiles, .grid { grid-template-columns: 1fr; } .doc-row { flex-wrap: wrap; } }
@media print {
  body.app { display: block; background: #fff; } .side, .no-print, .search { display: none !important; }
  .main { padding: 0; max-width: none; } .card { border: 0; box-shadow: none; padding: 0; }
  .checklist input { -webkit-appearance: none; appearance: none; border: 1.5px solid #000; border-radius: 3px; }
  .ph { background: none; border-bottom: 1px solid #000; }
}

/* HR section */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.tabs a { padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; }
.tabs a.on { background: var(--grad); color: #fff; border-color: transparent; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.pipe { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .6rem; text-align: center; text-decoration: none; color: var(--ink); }
.pipe strong { display: block; font-family: var(--display); font-size: 1.5rem; } .pipe span { font-size: .78rem; font-weight: 700; color: var(--soft); }
.pipe.on { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange) inset; }
.search select { width: auto; }
.stars { color: #E2A100; letter-spacing: .05em; white-space: nowrap; }
.tag.stage-new { background: #E4EEFB; color: #1D4F91; } .tag.stage-hired, .tag.stage-onboarding { background: #E3F4E8; color: #1F6B3A; }
.tag.stage-rejected, .tag.stage-withdrawn { background: #eee; color: #666; } .tag.sent { background: #E3F4E8; color: #1F6B3A; } .tag.held { background: #FFF1C9; color: #5C4500; } .tag.failed { background: #FBE4E2; color: #9B1C14; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 600; margin: .75rem 0; } .check input { width: 1.1rem; height: 1.1rem; accent-color: var(--deep); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; } .star { display: inline-flex; gap: .3rem; align-items: center; margin: 0; padding: .3rem .7rem; border: 1.5px solid #D9C7C0; border-radius: 999px; cursor: pointer; }
.star input { accent-color: var(--deep); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; } .inline-form select { width: auto; } .inline-form label { margin: 0; }
.tasks { list-style: none; padding: 0; margin: 0 0 1rem; } .tasks li { display: flex; gap: .6rem; align-items: baseline; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.tick { width: 1.5rem; height: 1.5rem; border-radius: 6px; border: 2px solid var(--deep); background: #fff; color: #fff; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0; }
.tick.done { background: var(--deep); } .struck { color: var(--soft); text-decoration: line-through; }
.history { list-style: none; padding: 0; margin: 0; } .history li { padding: .6rem 0 .6rem .9rem; border-left: 3px solid var(--line); margin-bottom: .4rem; }
.history li.note { border-color: var(--pink); } .history li.feedback { border-color: var(--orange); } .history li.system { color: var(--soft); font-size: .93rem; }
.mail { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; margin-bottom: .5rem; background: #fff; } .mail summary { cursor: pointer; font-weight: 700; }
.mail pre { white-space: pre-wrap; font: inherit; background: var(--cream); padding: .8rem 1rem; border-radius: 8px; }

/* house style: capitalise every word in headings and buttons */
h1, h2, h3, .btn, .tabs a, .side nav a { text-transform: capitalize; }

/* RFPs */
.rfp-facts { grid-template-columns: minmax(180px, 34%) 1fr; } .rfp-facts dt, .rfp-facts dd { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.tag.stage-accepted, .tag.stage-won { background: #E3F4E8; color: #1F6B3A; } .tag.stage-declined { background: #eee; color: #666; } .tag.stage-review, .tag.stage-proposal { background: #FFF1C9; color: #5C4500; }

/* Live chat */
.chat-row.unread { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange) inset; }
.badge { display: inline-block; background: var(--deep); color: #fff; font-size: .7rem; padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; text-transform: none; }
.chat-box { padding: 0; overflow: hidden; }
.chat-thread { height: min(52vh, 480px); overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; background: var(--cream); }
.chat-msg { max-width: 78%; padding: .6rem .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.chat-msg.staff { align-self: flex-end; background: var(--blush); border-color: #F3C9DB; }
.chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; } .chat-msg span { font-size: .75rem; color: var(--soft); }
.chat-reply { display: flex; gap: .6rem; padding: .9rem; border-top: 1px solid var(--line); align-items: flex-end; } .chat-reply textarea { flex: 1; resize: vertical; }

/* Workspace */
.main.wide { max-width: none; }
.wboard { display: flex; gap: 1rem; align-items: flex-start; overflow-x: auto; padding-bottom: 1rem; margin-bottom: 1rem; }
.wlist { flex: 0 0 290px; background: #F3E7E1; border-radius: 14px; padding: .7rem; max-height: calc(100vh - 230px); display: flex; flex-direction: column; }
.wlist.over { outline: 3px dashed var(--pink); }
.wlist > header { display: flex; align-items: center; gap: .5rem; padding: .2rem .3rem .6rem; }
.wlist h2 { font-size: .98rem; margin: 0; flex: 1; } .wlist .count { font-size: .78rem; font-weight: 700; color: var(--soft); }
.wcards { display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; min-height: 2.5rem; padding: 2px; }
.wstack { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.wcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(55,47,48,.08); cursor: grab; }
.wcard:hover { border-color: var(--orange); } .wcard.dragging { opacity: .45; } .wcard.done strong { text-decoration: line-through; color: var(--soft); }
.wcard strong { display: block; font-weight: 700; line-height: 1.3; }
.wlabel { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; margin-bottom: .3rem; background: #eee; color: #555; }
.l-urgent .wlabel { background: #FBE4E2; color: #9B1C14; } .l-customer .wlabel { background: #FFE6D9; color: #8A3A12; } .l-sales .wlabel { background: #E4EEFB; color: #1D4F91; }
.l-hiring .wlabel { background: #FDE3EF; color: #8E2A5E; } .l-operations .wlabel { background: #E3F4E8; color: #1F6B3A; } .l-finance .wlabel { background: #FFF1C9; color: #5C4500; }
.wcard-foot { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .4rem; font-size: .76rem; color: var(--soft); } .wcard-foot:empty { display: none; }
.due { font-weight: 700; padding: .08rem .45rem; border-radius: 6px; background: #eee; color: #555; font-size: .76rem; }
.due.overdue { background: #FBE4E2; color: #9B1C14; } .due.today { background: #FFE6D9; color: #8A3A12; } .due.soon { background: #FFF1C9; color: #5C4500; }
.who { margin-left: auto; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .66rem; display: grid; place-items: center; }
.wadd { display: flex; gap: .4rem; margin-top: .6rem; } .wadd input { flex: 1; padding: .45rem .6rem; } .wlist.new { background: transparent; border: 2px dashed #D9C7C0; } .wlist.new form { display: grid; gap: .5rem; }
.wmenu { position: relative; } .wmenu summary { list-style: none; cursor: pointer; font-size: 1.2rem; padding: 0 .3rem; } .wmenu summary::-webkit-details-marker { display: none; }
.wmenu div { position: absolute; right: 0; top: 1.6rem; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: .7rem; width: 230px; display: grid; gap: .5rem; }
.wmenu form { display: grid; gap: .4rem; } .linkish { background: none; border: 0; color: var(--soft); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tag.stage-contacted, .tag.stage-follow { background: #FFF1C9; color: #5C4500; } .tag.stage-closed { background: #eee; color: #666; }
/* navigation groups */
.side nav .nav-group { font-family: var(--display); font-weight: 800; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); margin: 1rem .8rem .3rem; }
@media (max-width: 900px) { .side nav .nav-group { width: 100%; margin: .6rem .2rem .1rem; } }
/* key numbers on the home page */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .7rem; margin: 0 0 1.5rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.kpi strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.kpi span { font-size: .8rem; font-weight: 700; color: var(--soft); }
.kpi:hover { border-color: var(--orange); }
.tiles-title { margin-top: .5rem; }
/* forms with photos, times and tick lists */
input[type=number], input[type=time], input[type=datetime-local], input[type=file] { width: 100%; font: inherit; color: var(--ink); padding: .6rem .75rem; border: 1.5px solid #D9C7C0; border-radius: 10px; background: #fff; }
fieldset.ticks, fieldset.rating, fieldset.quiz-q { border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem .8rem; margin: 0; }
fieldset.ticks legend, fieldset.rating legend { font-weight: 700; padding: 0 .3rem; }
fieldset.ticks .check { margin: .35rem 0; font-weight: 500; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.photos a { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--cream); aspect-ratio: 4 / 3; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos span { position: absolute; left: .4rem; top: .4rem; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 99px; }
.yes { color: #1F6B3A; font-weight: 700; } .no { color: #bbb; }
.tag.warn { background: #FFF1C9; color: #5C4500; }
.tag.sev-high { background: #FBE4E2; color: #9B1C14; } .tag.sev-medium { background: #FFF1C9; color: #5C4500; } .tag.sev-low { background: #eee; color: #555; }
.tag.stage-open, .tag.stage-investigating, .tag.stage-scheduled { background: #E4EEFB; color: #1D4F91; } .tag.stage-done, .tag.stage-resolved { background: #E3F4E8; color: #1F6B3A; }
.tag.stage-cancelled, .tag.stage-closed { background: #eee; color: #666; }
.tag.comp-complete { background: #E3F4E8; color: #1F6B3A; } .tag.comp-missing, .tag.comp-expiring { background: #FFF1C9; color: #5C4500; } .tag.comp-expired { background: #FBE4E2; color: #9B1C14; }
.warnlist li { color: #5C4500; } .warnlist li::before { content: "! "; font-weight: 800; }
.big-score { font-size: 1.4rem; margin: 0 0 .8rem; } .big-score .tag { font-size: 1.1rem; padding: .3rem .8rem; }
.matrix td.fail { color: #9B1C14; text-align: center; font-weight: 700; }
input.copy { width: 100%; font: inherit; padding: .6rem .75rem; border: 1.5px dashed var(--orange); border-radius: 10px; background: var(--cream); }
/* quizzes */
.quiz fieldset.quiz-q { margin: 0 0 .9rem; } .quiz legend { font-weight: 700; padding: 0 .3rem; }
.quiz label, .rating label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; margin: .35rem 0; cursor: pointer; }
.quiz input, .rating input { accent-color: var(--deep); margin-top: .3rem; }
.quiz-q.missed { border-color: #E9A39C; background: #FFF7F6; }
/* announcements */
.card.news { border-left: 6px solid var(--pink); } .news-meta { margin: -.6rem 0 1.2rem; }
/* customer survey page */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rating { text-align: left; }
