/* Faces match islandpacificmarket.com. Latin plus Latin-ext covers English and accented names. */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Gold and bronze stops from the Island Pacific logo. */
  --brand: #8e6237;
  --brand-bright: #dcb38f;
  --ink: #15171e;
  --muted: #5c564f;
  --line: #e6e2dc;
  --paper: #ffffff;
  --canvas: #f5f5f6;
  --notice: #f4ece4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Montserrat, Arial, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 28px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
}

.brand-logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 auto 8px;
}

h1, h2 {
  margin: 0 0 16px;
  font-family: Quicksand, Arial, Tahoma, sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-size: 1.2rem;
}

.page-login h1,
.page-demo h1 {
  text-align: center;
}

label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #d9d3cc;
  border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

button,
.btn {
  display: inline-block;
  width: auto;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.card button,
.card .store-open,
.panel button {
  display: block;
  width: 100%;
}

.login-wrap {
  flex-direction: column;
}

.store-card {
  margin-top: 16px;
}

.store-card .note:first-child {
  margin-top: 0;
}

.card .store-open {
  margin-top: 8px;
  background: #5c564f;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--notice);
  border-radius: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 2px solid var(--brand);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.topbar a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-logo {
  display: block;
  width: 150px;
  height: auto;
}

.topbar form {
  margin: 0;
}

.topbar .btn {
  margin-top: 0;
}

.who {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .topbar nav {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.page > h2 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.page:has(.table-wrap) {
  max-width: 960px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}

.page-head h1 {
  margin: 0;
}

.page-head .btn {
  width: auto;
}

.panel {
  margin: 0 0 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actions form {
  margin: 0;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}

.link-box {
  min-width: 220px;
  display: block;
  width: 100%;
  margin: 0 0 6px;
}

.store-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-card {
  display: block;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.ticket-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
}

.ticket-list > li:not(:has(a)) {
  padding: 18px 16px;
  color: var(--muted);
}

.ticket-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "status when"
    "title title";
  gap: 2px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.ticket-list li:last-child a {
  border-bottom: 0;
}

.ticket-list a:hover {
  background: #faf8f6;
}

.ticket-list .pill {
  grid-area: status;
  justify-self: start;
}

.ticket-list strong {
  grid-area: title;
  font-size: 1.02rem;
  font-weight: 600;
}

.ticket-list .meta {
  grid-area: when;
  justify-self: end;
  text-align: right;
}

.code, .meta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.count-row, .statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 18px 0 0;
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-block;
  margin-bottom: -1px;
  padding: 8px 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.chip.on {
  color: var(--ink);
  background: transparent;
  border-bottom-color: var(--brand);
}

.pill {
  display: inline-block;
  padding: 1px 8px;
  background: var(--notice);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.7;
  text-decoration: none;
}

.pill.wait_agent,
.pill.wait_vendor,
.pill.open {
  background: var(--notice);
  color: var(--brand);
}

.pill.resolved {
  background: #eee;
  color: var(--muted);
}

.pill.wait_staff {
  background: #f3eee6;
  color: #6d4e2e;
}

.msg {
  margin: 0 0 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.msg p {
  margin: 0;
}

.msg-body {
  white-space: pre-wrap;
}

.msg.system {
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.msg-who {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.choice {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  font-weight: 400;
}

textarea {
  min-height: 120px;
}

fieldset.statuses {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

a {
  color: var(--brand);
}

.page-demo .login-wrap {
  align-items: flex-start;
}

.page-demo .card {
  max-width: 440px;
}

.demo-intro {
  margin-top: 0;
  text-align: center;
}

.channel-meta {
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

button.role-admin { background: #6b4c9a; }
button.role-agent { background: #1d4e89; }
button.role-vendor { background: #c46b1a; }
button.role-staff { background: #5c564f; }

button.danger {
  background: #8f2d2d;
}

button.quiet {
  margin-top: 16px;
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--brand);
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.file-btn {
  position: relative;
  width: auto;
  margin: 0;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--brand);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.file-previews {
  display: grid;
  gap: 8px;
}

.file-preview {
  display: flex;
  gap: 8px;
  align-items: center;
}

.file-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.file-preview button {
  width: auto;
  margin: 0;
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--brand);
}

.upload-progress {
  height: 8px;
  margin: 0 0 12px;
  background: var(--notice);
}

.upload-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
}

.attach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.attach {
  margin: 0;
}

.attach-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  font-weight: 600;
  text-align: center;
}

.attach-image {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.attach-image img,
.attach-grid video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  background: #111;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(21, 23, 30, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 960px);
  max-height: 80vh;
  object-fit: contain;
}

.lightbox button {
  width: auto;
  margin: 0;
}

.path-grid {
  display: grid;
  gap: 12px;
  margin: 8px 0 8px;
}

.path {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.path h2 {
  margin: 0 0 6px;
}

.path > p {
  margin: 0 0 12px;
  color: var(--muted);
}

.btn-quiet {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.chat {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.chat h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  line-height: 1.05;
}

.ask-lead {
  margin: 0 0 16px;
  color: var(--muted);
}

.chat-form {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #d9d3cc;
}

.chat-form:focus-within {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.chat-form textarea {
  flex: 1;
  min-width: 0;
  height: calc(1.5em + 28px);
  min-height: calc(1.5em + 28px);
  max-height: 8rem;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  background: transparent;
}

.chat-form textarea:focus {
  outline: none;
}

.chat-form textarea::placeholder {
  color: #8a837b;
}

.chat-form button {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 4.75rem;
  margin: 0;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 0;
}

.chat-log:empty {
  display: none;
}

.chat-msg {
  max-width: none;
  margin: 0;
  white-space: pre-wrap;
}

.chat-msg.you {
  padding: 0;
  background: transparent;
  font-weight: 600;
}

.chat-msg.bot {
  padding: 14px 16px;
  background: #fff;
  border-left: 3px solid var(--brand);
}

.chat-msg.waiting {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 400;
}

.chat-source {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.ask-next {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ask-next a {
  color: var(--brand);
  font-weight: 600;
}

.ask-box textarea {
  min-height: 0;
  height: 4.5rem;
}

.ask-reply {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ask-reply p {
  margin: 0;
  white-space: pre-wrap;
}

.ask-reply .ask-source {
  margin-top: 14px;
}

.ask-source a {
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.add-article summary {
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.add-article form {
  margin-top: 14px;
}

.ask-answer p {
  white-space: pre-wrap;
}

.article-body { white-space: pre-wrap; }
.page:has(.doc) { max-width: 820px; }
.doc {
  padding: 22px 18px 32px;
  background: #fff;
  border: 1px solid var(--line);
}
.doc > h1 { margin-bottom: 10px; }
.media-file { margin-top: 4px; }
.manual-original { margin: 0 0 18px; }
.manual-original a { font-weight: 600; }
.manual-sheet { padding-top: 0.4rem; }
.manual-sheet + .manual-sheet {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
body.has-book { padding-bottom: 120px; }
.book .manual-sheet { display: none; padding-top: 0.2rem; }
.book .manual-sheet.is-on { display: block; }
.book .manual-sheet + .manual-sheet { margin: 0; padding-top: 0.2rem; border-top: 0; }
.book .manual-page { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.book-contents {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 8;
  max-height: min(60vh, calc(100vh - 150px));
  overflow: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}
.book-contents[hidden] { display: none; }
.book-contents button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 500;
}
.book-contents button[aria-current="true"] { color: var(--brand); font-weight: 600; }
.book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.book-find {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  order: -1;
}
.book-find-input {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}
.book-find-input::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
}
.book-find-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.book-find-count[hidden] { display: none; }
.book-find .book-find-prev,
.book-find .book-find-next {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.85rem;
}
.manual-hit {
  padding: 0 1px;
  color: inherit;
  background: #f3e8dc;
  border-radius: 2px;
}
.manual-hit.is-current {
  background: var(--brand-bright);
  outline: 1px solid var(--brand);
}
.book-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
}
.book-progress span { display: block; height: 100%; background: var(--brand); }
.book-where {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.book-bar button {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.book-bar button:disabled { opacity: 0.35; }
.book-bar .book-next {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
@media (prefers-reduced-motion: no-preference) {
  .book .manual-sheet.is-on { animation: book-in 0.18s ease; }
}
@keyframes book-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.manual h2 { font-size: 1.35rem; margin: 0.15rem 0 0.5rem; }
.manual h3 { font-size: 1.15rem; margin: 0.2rem 0 0.7rem; }
.manual p, .manual li { margin: 0.4rem 0; line-height: 1.6; }
.manual-sheet:first-child .manual-page { display: none; }
.manual-page {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
}
.manual-rule {
  margin: 0.2rem 0 1rem;
  border: 0;
  border-top: 1px solid var(--line);
}
.manual blockquote {
  margin: 0.9rem 0;
  padding: 8px 12px;
  background: var(--notice);
  border-left: 3px solid var(--brand);
}
button.manual-zoom {
  display: block;
  width: 100%;
  margin: 0.8rem 0 1.1rem;
  padding: 0;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  cursor: zoom-in;
  text-align: left;
}
.manual-zoom-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--notice);
}
.manual-shot { display: block; width: 100%; height: auto; background: #fff; }
body.shot-open { overflow: hidden; }
.shot-view {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #15171e;
}
.shot-view[hidden] { display: none; }
.shot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #111318;
}
.shot-title {
  flex: 1;
  margin: 0;
  color: #fff;
  font-weight: 600;
}
.shot-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1 1 100%;
}
.shot-bar button {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
@media (min-width: 760px) {
  .shot-actions { flex: 0 1 auto; display: flex; }
  .shot-close { order: 1; }
}
.shot-bar button:disabled { opacity: 0.35; }
.shot-bar button.shot-close {
  background: var(--brand);
  border-color: var(--brand);
}
.shot-stage { flex: 1; overflow: auto; }
.shot-stage.is-fit {
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot-stage img {
  display: block;
  max-width: none;
  max-height: none;
  margin: 0;
}
.ask-answer p { white-space: pre-wrap; }
.article-video { width: 100%; max-height: 480px; background: #111; }
