/* Spot Team Portal — Atomic Optimist look (ivory, ink line, aqua highlight, tomato dots). */
:root {
	--ink: #222220; --gray: #5D5E5A; --ivory: #F7EFE5; --paper: #FBF7F1; --ivory-deep: #F0E6D8;
	--aqua: #9ED7D2; --aqua-wash: #DCEEEA; --tomato: #FC4929; --tomato-wash: #FBDFD5;
	--mustard: #FDC638; --mustard-wash: #FCE8BA; --line: 1.5px solid #222220; --rule: rgba(34,34,32,.16);
	--radius: 20px; --font: 'Jost','Futura PT','Avenir Next','Century Gothic',Arial,sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.spot-portal { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.55 var(--font); }
.spot-portal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tomato); text-underline-offset: 3px; }
.spot-portal a:hover { text-decoration-thickness: 2px; }
.spot-portal :focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
.spot-skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); border: var(--line); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.spot-skip:focus { left: 12px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }

/* Top bar */
.spot-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--rule); background: var(--ivory); position: sticky; top: 0; z-index: 20; }
.spot-brand img { display: block; width: 150px; height: auto; }
.spot-topbar__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.spot-who { font-size: 15px; color: var(--gray); }
.spot-who strong { color: var(--ink); font-weight: 500; }

/* Buttons and form controls */
.spot-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border: var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 500 16px/1 var(--font); cursor: pointer; text-decoration: none !important; }
.spot-btn:hover { background: var(--paper); }
.spot-btn--primary { background: var(--ink); color: var(--ivory); }
.spot-btn--primary:hover { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.spot-btn--small { min-height: 36px; padding: 0 14px; font-size: 15px; }
.spot-btn--quiet { border-color: transparent; text-decoration: underline !important; text-decoration-color: var(--tomato) !important; padding: 0 8px; }
.spot-btn[disabled] { opacity: .5; cursor: not-allowed; }
.spot-form label, .spot-field > span { display: block; font-size: 15px; font-weight: 500; margin: 12px 0 4px; }
.spot-portal input[type=text], .spot-portal input[type=password], .spot-portal input[type=email], .spot-portal input[type=url], .spot-portal input[type=date], .spot-portal input[type=search], .spot-portal input[type=number], .spot-portal select, .spot-portal textarea {
	width: 100%; min-height: 44px; padding: 9px 12px; border: var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font);
}
.spot-portal textarea { min-height: 96px; resize: vertical; }
.spot-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.spot-check input { width: 20px; height: 20px; accent-color: var(--ink); }
.spot-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Messages */
.spot-msg { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--aqua-wash); }
.spot-msg--error { background: var(--tomato-wash); border-color: var(--tomato); }
.spot-loading { padding: 40px 0; color: var(--gray); }
.spot-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; max-width: calc(100vw - 32px); }
.spot-toast.is-on { opacity: 1; }
.spot-toast.is-error { background: var(--tomato); color: #fff; }

/* Cards and labels */
.spot-card { background: var(--paper); border: var(--line); border-radius: var(--radius); padding: 24px; }
.spot-eyebrow { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin: 0 0 6px; display: inline-flex; align-items: center; gap: 8px; }
.spot-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); flex: none; }
.spot-mark { padding: 0 .1em; text-decoration-line: underline; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-skip-ink: auto; } /* thin light-blue underline below the letters (was a thick highlight), Nov 15, 2026 */
.spot-muted { color: var(--gray); }

/* Login */
.spot-login-main { max-width: 480px; margin: 0 auto; padding: clamp(24px, 6vw, 64px) 16px 40px; }
.spot-login-card h1 { margin-bottom: 12px; }
.spot-login-card .spot-btn--primary { width: 100%; margin-top: 18px; }
.spot-login-help { margin: 16px 0 0; text-align: center; }
.spot-login-foot { font-size: 15px; color: var(--gray); text-align: center; margin-top: 18px; }
.spot-foot { text-align: center; padding: 24px 16px 32px; font-size: 15px; color: var(--gray); }

/* App layout */
.spot-main { max-width: 1280px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 40px) 64px; outline: none; }
.spot-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.spot-hero p { margin: 0; color: var(--gray); }
.spot-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.spot-tile { background: var(--paper); border: var(--line); border-radius: 16px; padding: 14px 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.spot-tile:hover { background: #fff; }
.spot-tile b { display: block; font-size: 34px; font-weight: 500; line-height: 1.1; }
.spot-tile span { font-size: 15px; color: var(--gray); }
.spot-tile[aria-pressed=true] { background: var(--aqua-wash); }
.spot-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.spot-tab { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; font: 400 16px/1 var(--font); color: var(--ink); cursor: pointer; }
.spot-tab[aria-selected=true] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.spot-tab .spot-count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: var(--tomato); color: #fff; font-size: 13px; }
.spot-filters { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.spot-filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spot-banner { background: var(--mustard-wash); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }

/* Assignment list */
.spot-client { margin: 26px 0 8px; }
.spot-client > h2 { display: flex; align-items: baseline; gap: 10px; }
.spot-client > h2 small { font-size: 15px; color: var(--gray); font-weight: 400; }
.spot-campaign { margin: 12px 0 6px; font-size: 16px; color: var(--gray); font-weight: 500; }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spot-item { background: var(--paper); border: var(--line); border-radius: 16px; display: grid; grid-template-columns: minmax(220px, 3fr) minmax(110px, 1.2fr) minmax(130px, 1.2fr) 92px minmax(120px, 1.4fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.spot-item.is-mine { box-shadow: inset 5px 0 0 var(--aqua); }
.spot-item.is-done { background: var(--ivory-deep); }
.spot-item__title { font: 500 16px/1.35 var(--font); text-align: left; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; }
.spot-item__title:hover { text-decoration-color: var(--tomato); }
.spot-item__sub { display: block; font-size: 14px; color: var(--gray); margin-top: 2px; }
.spot-item__k { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); }
.spot-item__main { display: flex; gap: 8px; align-items: flex-start; }
.spot-item__main .spot-prio { margin-top: 7px; flex: none; }
.spot-item__v { font-size: 15px; overflow-wrap: anywhere; }
.spot-item__acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.spot-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 14px; line-height: 1.4; border: 1px solid var(--rule); background: var(--ivory-deep); white-space: nowrap; }
.spot-pill[data-s="In Progress"] { background: var(--aqua-wash); }
.spot-pill[data-s^="Waiting"] { background: var(--mustard-wash); }
.spot-pill[data-s="Waiting on Eugenia"] { background: var(--mustard); }
.spot-pill[data-s="Ready for Review"], .spot-pill[data-s="Ready to Publish"] { background: var(--aqua); }
.spot-pill[data-s="Revisions Needed"] { background: var(--tomato-wash); border-color: var(--tomato); }
.spot-pill[data-s="Complete"] { background: var(--paper); border-color: var(--ink); }
.spot-due { white-space: nowrap; }
.spot-due.is-late { color: #B3240B; font-weight: 500; }
.spot-prio { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.spot-prio[data-p=today] { background: var(--tomato); }
.spot-prio[data-p=soon] { background: var(--mustard); }
.spot-prio[data-p=normal] { background: var(--aqua); }
.spot-empty { padding: 30px; text-align: center; color: var(--gray); }
.spot-rhythm { margin-top: 36px; font-size: 15px; color: var(--gray); }

/* Dialog */
dialog.spot-dialog { width: min(860px, 100vw); max-width: 100vw; max-height: 100dvh; margin: 0 0 0 auto; height: 100dvh; padding: 0; border: 0; border-left: var(--line); background: var(--ivory); color: var(--ink); }
dialog.spot-dialog::backdrop { background: rgba(34,34,32,.35); }
.spot-dialog__head { position: sticky; top: 0; background: var(--ivory); border-bottom: 1px solid var(--rule); padding: 18px 22px 12px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; z-index: 2; }
.spot-dialog__head h2 { font-size: 24px; margin: 0; }
.spot-dialog__body { padding: 18px 22px 40px; }
.spot-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; }
.spot-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 18px; margin: 0 0 18px; }
.spot-facts dt { font-size: 13px; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.spot-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.spot-section { margin: 20px 0; }
.spot-section > h3 { display: flex; align-items: center; gap: 8px; }
.spot-section > h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); }
.spot-box { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.spot-box--private { background: var(--mustard-wash); }
.spot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; background: var(--paper); border: var(--line); border-radius: 16px; padding: 14px; margin-bottom: 18px; }
.spot-actions .spot-field { flex: 1 1 220px; }
.spot-actions .spot-field > span { margin-top: 0; }
.spot-subform { flex-basis: 100%; display: grid; gap: 8px; }
.spot-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spot-note { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 14px; }
.spot-note.is-private { background: var(--mustard-wash); }
.spot-note__meta { font-size: 14px; color: var(--gray); margin-bottom: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.spot-note__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.spot-history { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.spot-history li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.spot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.spot-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--ivory-deep); border: 1px solid var(--rule); }
.spot-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.spot-team-card { border: 1.5px dashed var(--ink); border-radius: 16px; padding: 12px 16px; background: var(--aqua-wash); }
table.spot-table { width: 100%; border-collapse: collapse; background: var(--paper); border: var(--line); border-radius: 16px; overflow: hidden; }
table.spot-table th, table.spot-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); font-size: 15px; vertical-align: top; }

@media (max-width: 1080px) {
	.spot-item { grid-template-columns: 1fr 1fr 1fr; }
	.spot-item > :first-child { grid-column: 1 / -1; }
	.spot-item__acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
	body.spot-portal { font-size: 16px; }
	.spot-brand img { width: 112px; }
	.spot-who { display: none; }
	.spot-filters { grid-template-columns: 1fr 1fr; }
	.spot-filters > :first-child { grid-column: 1 / -1; }
	.spot-item { grid-template-columns: 1fr 1fr; }
	.spot-grid2 { grid-template-columns: 1fr; }
	dialog.spot-dialog { width: 100vw; border-left: 0; }
	.spot-dialog__head, .spot-dialog__body { padding-left: 16px; padding-right: 16px; }
	.spot-tile b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
