:root {
  --navy-950: #081a2b;
  --navy-900: #0c2238;
  --navy-800: #12314d;
  --cyan-500: #1cbda9;
  --slate-700: #4f5e6c;
  --slate-500: #748290;
  --slate-300: #cbd3da;
  --slate-200: #dce3e8;
  --slate-100: #edf1f4;
  --off-white: #f7f8f8;
  --white: #fff;
  --sans: Arial, "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  display: block;
  background: var(--white);
  color: var(--navy-950);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sidebar {
  min-height: 100vh;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  background: #f1f3f3;
  border-inline-end: 1px solid #e5e8e8;
}
.side-brand {
  min-height: 48px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-brand img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
}
.side-brand > span { display: grid; gap: 1px; }
.side-brand strong { font-size: 14px; }
.side-brand small {
  color: var(--slate-500); font-size: 7px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.side-nav { margin-top: 22px; display: grid; gap: 4px; }
.side-nav a {
  position: relative;
  min-height: 44px; padding: 10px 11px; display: flex; align-items: center; gap: 11px;
  border-radius: 9px; color: #36434e; font-size: 12px;
}
.side-nav a:hover, .side-nav a.active { background: #e4e8e8; color: var(--navy-950); }
.side-nav a.active::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  inset-inline-start: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--cyan-500);
}
.nav-icon { position: relative; width: 18px; height: 18px; flex: 0 0 auto; color: var(--navy-800); }
.plus-icon { border: 1px solid currentColor; border-radius: 5px; }
.plus-icon::before, .plus-icon::after {
  content: ""; position: absolute; top: 8px; left: 4px; width: 8px; height: 1px; background: currentColor;
}
.plus-icon::after { transform: rotate(90deg); }
.report-icon { border: 1px solid currentColor; border-radius: 3px; }
.report-icon::before {
  content: ""; position: absolute; top: 5px; right: 3px; left: 3px; height: 1px;
  background: currentColor; box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}
.standard-icon { border: 1px solid currentColor; border-radius: 50%; }
.standard-icon::before {
  content: "i"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 12px; font-weight: 700;
}
.side-footer {
  margin-top: auto; padding: 12px 10px; display: flex; align-items: center; gap: 8px;
  color: var(--slate-500); font-size: 9px;
}
.online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(28, 189, 169, .12);
}

.app-main { min-width: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.topbar {
  min-height: 62px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.top-brand { display: inline-flex; align-items: center; gap: 9px; }
.top-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.top-brand strong { color: var(--navy-900); font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.language-select select {
  min-height: 36px; padding: 6px 25px 6px 9px; border: 0;
  background: transparent; color: var(--slate-700); font-size: 13px; cursor: pointer;
}
.signin-link {
  padding: 8px 14px; border: 1px solid var(--slate-300); border-radius: 7px;
  color: var(--navy-900); font-size: 13px; font-weight: 700;
}
.signin-link:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(28, 189, 169, .14);
}
.signup-link {
  padding: 9px 14px; border: 1px solid var(--navy-900); border-radius: 7px;
  background: var(--navy-900); color: var(--white); font-size: 13px; font-weight: 700;
}
.signup-link:hover { background: var(--navy-800); border-color: var(--navy-800); }
.signout-link {
  border-color: var(--slate-200);
  background: var(--slate-100);
  color: var(--navy-900);
}
.signout-link:hover {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.workspace {
  position: relative;
  min-height: calc(100vh - 62px);
  padding: 28px;
}
.welcome {
  position: absolute;
  top: calc(50% - 176px);
  left: 50%;
  width: min(760px, calc(100% - 56px));
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  transform: translateX(-50%);
}
.welcome img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 6px 24px rgba(8, 26, 43, .08);
}
.welcome h1 {
  margin: 0; color: var(--navy-950); font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 500; letter-spacing: -.035em;
}
.composer-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100% - 56px));
  transform: translate(-50%, -36px);
}
.composer {
  min-height: 72px; padding: 10px 10px 10px 20px; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  border: 1px solid var(--slate-200); border-radius: 24px; background: var(--white);
  box-shadow: 0 5px 24px rgba(8, 26, 43, .1);
}
.composer:focus-within {
  border-color: var(--cyan-500);
  box-shadow: 0 7px 28px rgba(8, 26, 43, .14), 0 0 0 3px rgba(28, 189, 169, .1);
}
.composer input {
  min-width: 0; padding: 12px 6px; border: 0; outline: 0;
  background: transparent; color: var(--navy-950); font-size: 18px;
}
.composer input::placeholder { color: #8a949d; }
.composer button {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--navy-900); color: var(--white);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.composer button:hover { background: var(--navy-800); }
.search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}
.search-examples {
  margin: 13px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px;
  color: var(--slate-500); font-size: 12px; line-height: 1.5;
}
.search-examples > span { margin-inline-end: 2px; font-weight: 700; }
.search-examples a {
  padding: 5px 8px; border-radius: 999px; background: var(--slate-100); color: var(--slate-700);
}
.search-examples a:hover { background: var(--slate-200); color: var(--navy-900); }
.search-examples .browse-reports { background: transparent; color: var(--navy-900); font-weight: 700; }

[dir="rtl"] .language-select select { padding: 6px 9px 6px 25px; }
[dir="rtl"] .composer { padding: 10px 20px 10px 10px; }

@media (max-width: 820px) {
  .topbar { min-height: 62px; justify-content: space-between; border-bottom: 1px solid #eceeee; }
  .workspace { min-height: calc(100vh - 62px); padding: 18px; }
  .welcome { top: calc(50% - 158px); width: calc(100% - 36px); }
  .composer-wrap { width: calc(100% - 36px); transform: translate(-50%, -32px); }
  .composer { min-height: 64px; padding: 7px 8px 7px 16px; border-radius: 20px; }
  [dir="rtl"] .composer { padding: 7px 16px 7px 8px; }
  .composer button { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .topbar { padding-inline: 12px; }
  .language-select { display: none; }
  .top-actions { gap: 6px; }
  .signin-link, .signup-link { display: inline-flex; padding: 7px 9px; font-size: 12px; }
  .workspace { padding: 14px; }
  .welcome { top: calc(50% - 148px); width: calc(100% - 28px); gap: 14px; }
  .composer-wrap { width: calc(100% - 28px); }
  .welcome img { width: 46px; height: 46px; }
  .welcome h1 { font-size: 25px; }
  .composer input { font-size: 16px; }
  .search-examples { max-width: 320px; margin-top: 11px; }
}
