:root {
  color: #18181a;
  background: #fdfdfd;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; min-height: 100vh; background: #fdfdfd; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }

.site-header { height: 68px; display: flex; align-items: center; padding: 0 28px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 7px; min-width: 135px; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px 11px 8px 11px; color: #fff; font-weight: 900; font-size: 19px; background: #18cf9b; transform: rotate(-5deg); }
.brand-name { font-size: 12px; line-height: 10px; font-weight: 900; letter-spacing: -0.8px; }
.brand-name span { color: #18cf9b; }
.main-nav { display: flex; flex: 1; justify-content: center; align-items: center; gap: clamp(22px, 3vw, 44px); font-size: 16px; font-weight: 600; }
.main-nav a { padding: 8px 0; }
.main-nav a:hover { color: #13b989; }
.login-button { min-width: 100px; padding: 14px 24px; border-radius: 13px; background: #1b1b1d; color: #fff; text-align: center; font-size: 16px; font-weight: 650; }
.login-button:hover { background: #343438; }
.user-menu { position: relative; }
.user-menu-trigger { min-width: 100px; max-width: 220px; overflow: hidden; padding: 14px 24px; border: 0; border-radius: 13px; color: #fff; background: #1b1b1d; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 650; cursor: pointer; }
.user-menu-trigger:hover, .user-menu:focus-within .user-menu-trigger { background: #343438; }
.user-menu-dropdown { position: absolute; z-index: 10; top: calc(100% + 6px); right: 0; display: grid; width: 172px; padding: 8px; border: 1px solid #e9e9ea; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.user-menu:hover .user-menu-dropdown, .user-menu:focus-within .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-name { padding: 8px 10px 10px; overflow: hidden; color: #757579; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-menu-dropdown button, .user-menu-dropdown a { padding: 10px; border: 0; border-radius: 8px; color: #303034; background: transparent; text-align: left; font-size: 14px; cursor: pointer; }
.user-menu-dropdown button:hover, .user-menu-dropdown a:hover { color: #0ba87b; background: #f3faf7; }
.user-menu-divider { height: 1px; margin: 6px 2px; background: #ededee; }
.user-menu-dropdown .logout-action { color: #d94b4b; }
.user-menu-dropdown .logout-action:hover { color: #c63434; background: #fff4f4; }

.hero { width: min(1056px, calc(100% - 48px)); margin: clamp(130px, 17vh, 220px) auto 0; }
.hero-copy { padding-left: 62px; }
.eyebrow { margin: 0 0 4px; font-size: clamp(41px, 4vw, 52px); letter-spacing: -2px; font-weight: 750; }
h1 { margin: 0 0 25px; font-size: clamp(40px, 4vw, 52px); line-height: 1.14; letter-spacing: -2px; font-weight: 800; }
.mode-switch { display: inline-flex; padding: 2px; border-radius: 13px; background: #f0f0f1; }
.mode { border: 0; border-radius: 11px; padding: 12px 17px; color: #6d6d70; background: transparent; font-size: 16px; cursor: pointer; }
.mode.active { color: #fff; background: #434345; box-shadow: 0 1px 3px #0002; }

.workbench { position: relative; min-height: 314px; margin-top: 66px; padding: 0 0 24px; border-radius: 25px; background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%); box-shadow: 0 10px 25px rgba(0,0,0,.025); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 17px; }
.quick-actions button { padding: 11px 17px; border: 1px solid #e7e7e8; border-radius: 11px; background: #fff; color: #505054; box-shadow: 0 1px 2px #00000008; font-size: 16px; font-weight: 600; cursor: pointer; }
.quick-actions button:hover { border-color: #a9e9d5; color: #0fa97d; }
.assistant-orb { position: absolute; right: 22px; top: -3px; display: grid; place-items: center; width: 104px; height: 83px; border: 4px solid #c7c9c6; border-radius: 48% 48% 43% 43%; background: radial-gradient(circle at 50% 34%, #45494c 0 11%, #151719 13% 58%, #606566 60% 65%, #202224 66%); box-shadow: inset 0 0 0 5px #eceee9, 0 4px 10px #0002; }
.assistant-orb::before, .assistant-orb::after { content: ""; position: absolute; top: -19px; width: 25px; height: 31px; border: 6px solid #c7c9c6; background: #303335; }
.assistant-orb::before { left: 8px; border-radius: 70% 10% 20% 15%; transform: rotate(-26deg); }
.assistant-orb::after { right: 8px; border-radius: 10% 70% 15% 20%; transform: rotate(26deg); }
.assistant-orb span { z-index: 1; color: #10d4b4; font-size: 24px; }
.prompt-box { margin: 0 0 0 0; min-height: 196px; padding: 21px 22px 15px; border: 1px solid #ededee; border-radius: 23px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.03); }
textarea { display: block; resize: none; width: 100%; height: 110px; padding: 0; border: 0; outline: 0; color: #27272a; font-size: 17px; line-height: 1.6; }
textarea::placeholder { color: #aaa; }
.prompt-footer { display: flex; align-items: center; justify-content: space-between; }
.add-button { border: 0; padding: 0; background: transparent; color: #303034; font-size: 31px; line-height: 1; cursor: pointer; }
.send-button { display: grid; width: 45px; height: 45px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #bebfc2; font-size: 19px; cursor: pointer; }
.send-button:hover { background: #18bf91; }
.workbench-note { margin: 12px 22px 0; color: #8f9093; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 80px); padding: 12px 18px; border-radius: 10px; background: #202124; color: #fff; opacity: 0; transition: .2s; font-size: 14px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 820px) {
  .site-header { padding: 0 18px; }
  .main-nav { display: none; }
  .brand { flex: 1; }
  .login-button { min-width: 76px; padding: 11px 16px; }
  .user-menu-trigger { min-width: 76px; padding: 11px 16px; }
  .hero { width: min(100% - 32px, 620px); margin-top: 95px; }
  .hero-copy { padding-left: 0; }
  .workbench { margin-top: 48px; }
}

@media (max-width: 480px) {
  .hero { margin-top: 64px; }
  .eyebrow, h1 { letter-spacing: -1px; }
  .quick-actions { gap: 7px; }
  .quick-actions button { padding: 8px 11px; font-size: 14px; }
  .assistant-orb { transform: scale(.72); transform-origin: top right; }
  .prompt-box { min-height: 184px; }
}
