@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/oauth/fonts/ibm-plex-sans-thai-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/oauth/fonts/ibm-plex-sans-thai-400-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/oauth/fonts/ibm-plex-sans-thai-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/oauth/fonts/ibm-plex-sans-thai-600-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/oauth/fonts/ibm-plex-sans-thai-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/oauth/fonts/ibm-plex-sans-thai-700-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  --primary: #00aaad;
  --primary-hover: #00898b;
  --primary-0: #ebfafa;
  --primary-100: #c2ecec;
  --gray-0: #fafafa;
  --gray-200: #e8e8e8;
  --gray-400: #b8b8b8;
  --gray-600: #888888;
  --gray-900: #2b2b2b;
  --border: #d1d5db;
  --placeholder: #6b7280;
  --error: #d50000;
  --error-bg: #f6505033;
  --white: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--gray-900);
  font-family: Gotham, "IBM Plex Sans Thai", sans-serif;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.5rem;
  min-height: 4.5rem;
}

.globe {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-900);
}

.switcher {
  height: 1.5rem;
  padding: 0 1.75rem 0 0.5rem;
  border: 1px solid var(--stroke, #d1d5db);
  border-radius: 0.375rem;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M5.6813 9.61133L0.132167 3.83635C-0.0440556 3.65146 -0.0440556 3.35248 0.132167 3.16758L0.874551 2.38867C1.05077 2.20378 1.33573 2.20378 1.51195 2.38867L6 7.05035L10.488 2.38867C10.6643 2.20378 10.9492 2.20378 11.1254 2.38867L11.8678 3.16758C12.0441 3.35248 12.0441 3.65146 11.8678 3.83635L6.3187 9.61133C6.14248 9.79622 5.85752 9.79622 5.6813 9.61133Z' fill='%23A7A7A7'/%3E%3C/svg%3E")
    no-repeat center right 0.5rem / 0.5rem;
  color: var(--gray-900);
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  appearance: none;
}

.switcher:focus {
  outline: 1px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem 2.5rem;
}

.stack {
  display: flex;
  width: 100%;
  max-width: 28rem;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.stack.wide {
  max-width: 60rem;
  gap: 2rem;
  padding: 2.5rem 0;
}

.logo {
  width: 6rem;
  height: 6rem;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  color: var(--gray-900);
  text-align: center;
  text-wrap: balance;
}

.wide h1 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.sub {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--gray-600);
  text-align: center;
}

.requester {
  display: grid;
  gap: 0.125rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-align: center;
}

.requester p {
  margin: 0;
}

.requester-label,
.requester-destination {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--gray-600);
}

.requester-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  overflow-wrap: anywhere;
}

.requester-destination strong {
  color: var(--gray-900);
  overflow-wrap: anywhere;
}

form {
  width: 100%;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field,
.field input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--gray-900);
}

.field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 42px;
  width: 100%;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--white);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.field input::placeholder {
  color: var(--placeholder);
}

.field:focus-within {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
  outline-offset: 0;
}

.reveal {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 0;
}

.reveal svg {
  width: 1.25rem;
  height: 1.25rem;
}

.field:focus-within .reveal {
  color: var(--gray-900);
}

.alert {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.alert svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

button.primary,
button.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  min-height: 3rem;
  width: 100%;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

button.primary {
  margin-top: 1.5rem;
  background: var(--primary);
  color: var(--white);
}

button.primary:hover {
  background: var(--primary-hover);
}

button.ghost {
  margin-top: 0.5rem;
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--border);
}

button.ghost:hover {
  border-color: var(--gray-400);
}

.link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.foot {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--gray-600);
  text-align: center;
}

.shops {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 480px) {
  .shops {
    flex-direction: row;
  }
}

.shop {
  display: flex;
  min-width: 0;
  flex-basis: 33.333333%;
  max-width: 12rem;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--gray-0);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
  text-align: center;
}

/* No :hover. These cards were selectable once and grew a lift-and-highlight from
   mycloud-oms; the shop is chosen per conversation now, so they only report what
   the grant will cover. A card that reacts to the pointer says "click me", and
   there is nothing to click. */

@media (min-width: 768px) {
  .shop {
    flex-basis: 25%;
  }
}

@media (min-width: 1024px) {
  .shop {
    flex-basis: 20%;
  }
}


.avatar {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary-100);
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 600;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-name {
  margin: 1rem 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shop-id {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--gray-600);
}

.perms {
  width: 100%;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--gray-0);
}

.perms h2 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  color: var(--gray-900);
}

.perms ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.75rem;
  color: var(--gray-600);
}

.perms li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  align-items: baseline;
}

.perms li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.doc main {
  align-items: flex-start;
  padding-top: 0;
}

.doc .stack {
  align-items: stretch;
  max-width: 48rem;
  gap: 0;
  text-align: left;
}

.doc .logo {
  align-self: flex-start;
  width: 3rem;
  height: 3rem;
}

.doc h1 {
  margin: 1rem 0 0.25rem;
  font-size: 1.75rem;
  line-height: 2.25rem;
  text-align: left;
}

.doc .sub {
  margin: 0 0 2rem;
  text-align: left;
}

.doc h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

.doc p,
.doc li {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.doc ul,
.doc ol {
  padding-left: 1.375rem;
}

.doc li {
  margin: 0.375rem 0;
}

.doc a {
  color: var(--primary-hover);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.doc th,
.doc td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--gray-0);
  font-weight: 600;
}

.doc code {
  padding: 0.0625rem 0.3125rem;
  border-radius: 0.1875rem;
  background: var(--gray-0);
  font-size: 0.8125rem;
}

.doc .note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--primary-0);
  font-size: 0.875rem;
}

.doc .note p {
  margin: 0;
  font-size: 0.875rem;
}




.doc .todo {
  padding: 0.0625rem 0.375rem;
  border-radius: 0.1875rem;
  border-bottom: 2px solid #e8a33d;
  background: #ffe9a8;
  font-weight: 500;
}

.doc .draft {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e8a33d;
  border-radius: 0.375rem;
  background: #fff4e5;
  font-size: 0.875rem;
}

.doc .draft p {
  margin: 0;
  font-size: 0.875rem;
}

.doc footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.8125rem;
}

.doc .langlinks {
  font-size: 0.8125rem;
}

.doc .langlinks a {
  color: var(--gray-600);
}

.doc .langlinks a[aria-current="true"] {
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: none;
}
