/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.visible{
  visibility: visible;
}
.block{
  display: block;
}
.inline{
  display: inline;
}
.flex{
  display: flex;
}
.hidden{
  display: none;
}
.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.border{
  border-width: 1px;
}
.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

:root {
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mind-navy: #101d35;
  --sync-blue: #1262f1;
  --flow-cyan: #0aa5ee;
  --ease-teal: #16d5c6;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fbfcff;
  --border: #e6ebf2;
  --border-strong: #dce5f0;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --success: #059669;
  --warning: #b45309;
  --danger: #dc2626;
  --header-height: 104px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 22px 60px rgba(16, 29, 53, 0.08);
  --shadow-drawer: 0 28px 90px rgba(16, 29, 53, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--mind-navy);
  font-family: var(--font-sans);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; }

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

.app-shell { min-height: 100vh; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
.brand-logo-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}
.brand-logo {
  display: block;
  max-width: calc(100vw - 116px);
  -o-object-fit: contain;
     object-fit: contain;
}
.brand-icon {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  -o-object-fit: contain;
     object-fit: contain;
}
.hamburger-button {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.hamburger-button:hover,
.hamburger-button:focus-visible {
  background: rgba(22, 213, 198, 0.18);
  outline: none;
}
.hamburger-button:active { transform: scale(0.97); }
.app-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px 24px 96px;
}

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  pointer-events: none;
}
.drawer-layer--open {
  visibility: visible;
  pointer-events: auto;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  background: rgba(16, 29, 53, 0.48);
  cursor: default;
  transition: opacity 180ms ease;
}
.drawer-layer--open .drawer-backdrop { opacity: 1; }
.navigation-drawer,
.assistant-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100dvh;
  border-left: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform 220ms ease;
}
.drawer-layer--open .navigation-drawer,
.drawer-layer--open .assistant-drawer { transform: translateX(0); }
.navigation-drawer {
  display: flex;
  width: min(430px, 92vw);
  flex-direction: column;
  overflow: hidden;
}
.navigation-drawer__header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}
.navigation-drawer__header .brand-logo { height: 65px !important; }
.navigation-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.navigation-user__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.navigation-user__identity strong,
.navigation-user__identity small { display: block; }
.navigation-user__identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.navigation-user__identity small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.navigation-user__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid #d8e9ff;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--sync-blue);
}
.ai-ready {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.ai-ready > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ease-teal);
}
.navigation-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 24px;
}
.navigation-section + .navigation-section { margin-top: 22px; }
.navigation-section__label,
.assistant-group-label,
.eyebrow {
  margin: 0 0 9px;
  color: var(--sync-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.navigation-section__label { color: var(--muted-light); }
.navigation-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 9px;
  border-bottom: 1px solid var(--border);
  color: #334155;
  font-size: 14px;
  font-weight: 750;
  transition: color 150ms ease, background-color 150ms ease;
}
.navigation-link svg { color: var(--sync-blue); }
.navigation-link:hover,
.navigation-link:focus-visible,
.navigation-link--active {
  border-radius: 12px;
  background: #f4f9ff;
  color: var(--sync-blue);
  outline: none;
}
.navigation-submenu { padding: 5px 0 8px 35px; }
.navigation-submenu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.navigation-submenu a:hover { color: var(--sync-blue); }
.navigation-submenu__bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sync-blue);
}
.navigation-drawer__footer {
  display: grid;
  gap: 9px;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.navigation-create-project { justify-content: center; }
.navigation-signout { justify-content: center; }

.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}
.ui-button:disabled { cursor: not-allowed; opacity: 0.55; }
.ui-button:not(:disabled):active { transform: translateY(1px); }
.ui-button--md { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.ui-button--sm { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.ui-button--icon { width: 44px; height: 44px; padding: 0; border-radius: 13px; }
.ui-button--primary { border-color: var(--sync-blue); background: var(--sync-blue); color: #fff; }
.ui-button--primary:hover { background: #0d55d4; }
.ui-button--secondary { background: #fff; color: var(--mind-navy); }
.ui-button--secondary:hover { border-color: #bfd5fb; background: #f8fbff; }
.ui-button--ghost { border-color: transparent; background: transparent; color: var(--muted); }
.ui-button--ghost:hover { background: #f2f6fb; color: var(--mind-navy); }
.ui-button--danger { border-color: #fecaca; background: #fff5f5; color: var(--danger); }

.assistant-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 17px 9px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.assistant-launcher:hover,
.assistant-launcher:focus-visible { border-color: rgba(22, 213, 198, 0.8); outline: none; }
.assistant-launcher .brand-icon { width: 40px; height: 40px; }
.assistant-drawer {
  display: flex;
  width: min(1120px, 96vw);
  flex-direction: column;
  overflow: hidden;
}
.assistant-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.assistant-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.assistant-header__brand .brand-icon { width: 48px; height: 48px; }
.assistant-header__brand strong,
.assistant-header__brand small { display: block; }
.assistant-header__brand small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.assistant-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 330px minmax(0, 1fr);
}
.assistant-history {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: #fbfcff;
}
.assistant-history__toolbar {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.assistant-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
}
.assistant-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
}
.assistant-history__list { padding: 16px; }
.assistant-history-item {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.assistant-history-item:hover,
.assistant-history-item--active {
  border-color: #d9e8ff;
  background: #fff;
}
.assistant-history-item__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #eef6ff;
  color: var(--sync-blue);
}
.assistant-history-item__copy strong,
.assistant-history-item__copy small { display: block; }
.assistant-history-item__copy strong { color: #26364f; font-size: 12px; line-height: 1.35; }
.assistant-history-item__copy small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.assistant-history-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--muted-light);
}
.assistant-history-item__meta small { font-size: 9px; }
.assistant-conversation {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}
.assistant-conversation__context {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.assistant-conversation__context h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.scope-selector { display: grid; gap: 5px; }
.scope-selector > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.scope-selector select {
  min-width: 130px;
  padding: 9px 34px 9px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.assistant-memory-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 22px 0;
  padding: 12px 14px;
  border: 1px solid #dceafe;
  border-radius: 16px;
  background: #f7fbff;
  color: var(--sync-blue);
}
.assistant-memory-note p { flex: 1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.assistant-messages {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: 12px;
  overflow-y: auto;
  padding: 20px 22px;
  align-content: start;
}
.chat-message {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.65;
}
.chat-message p { margin: 5px 0 0; }
.chat-message--assistant { border: 1px solid #dceafe; background: #eef6ff; }
.chat-message--assistant p { color: #40536e; }
.chat-message--user { justify-self: end; background: var(--mind-navy); color: #fff; }
.chat-message--user p { margin: 0; color: #fff; }
.assistant-composer {
  margin: 0 22px 22px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(16, 29, 53, 0.07);
}
.assistant-composer textarea {
  width: 100%;
  min-height: 78px;
  resize: none;
  border: 0;
  outline: none;
  color: var(--mind-navy);
}
.assistant-composer__actions { display: flex; justify-content: flex-end; gap: 8px; }

.ui-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
}
.ui-card--soft { background: var(--surface-soft); }
.ui-card--hero {
  border: 0;
  background: radial-gradient(circle at top right, rgba(22, 213, 198, 0.34), transparent 30%), linear-gradient(135deg, var(--sync-blue), var(--flow-cyan) 55%, var(--ease-teal));
  color: #fff;
}
.ui-card--hero p { color: rgba(255, 255, 255, 0.86); }
.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.ui-badge--success { border-color: #bbf7d0; background: #f0fdf4; color: #047857; }
.ui-badge--blue { border-color: #d6e6ff; background: #f2f7ff; color: var(--sync-blue); }
.ui-badge--warning { border-color: #fde68a; background: #fffbeb; color: var(--warning); }

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.page-heading h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.page-heading__description { max-width: 780px; margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.page-heading__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dashboard-stack { display: grid; gap: 22px; }
.hero-panel { min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.hero-panel h1 { margin: 0; max-width: 850px; font-size: clamp(38px, 7vw, 68px); line-height: 1.02; letter-spacing: -0.06em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .ui-button--secondary { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; }
.content-grid { display: grid; gap: 18px; }
.content-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-heading { margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -0.035em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.metric { padding: 14px; border: 1px solid var(--border); border-radius: 17px; background: #fbfcff; }
.metric strong { display: block; font-size: 28px; line-height: 1; letter-spacing: -0.04em; }
.metric small { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; }
.list-stack { display: grid; gap: 10px; }
.list-card { display: block; padding: 15px; border: 1px solid var(--border); border-radius: 17px; background: #fff; }
.list-card:hover { border-color: #bdd6ff; }
.list-card strong { display: block; }
.list-card small { display: block; margin-top: 5px; color: var(--muted); }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 15px; }
.form-control { display: grid; gap: 7px; }
.form-control span { color: #334155; font-size: 12px; font-weight: 800; }
.form-control input,
.form-control select,
.form-control textarea,
.inline-form input,
.inline-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--mind-navy);
  outline: none;
}
.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus,
.inline-form input:focus,
.inline-form select:focus { border-color: var(--sync-blue); box-shadow: 0 0 0 4px rgba(18, 98, 241, 0.08); }
.form-control textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-control--full { grid-column: 1 / -1; }
.form-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-error { padding: 12px 14px; border: 1px solid #fecaca; border-radius: 14px; background: #fff5f5; color: #b91c1c; font-size: 12px; }

.field-error { color: #b91c1c !important; font-size: 11px !important; font-weight: 700 !important; }
.PhoneInput {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.PhoneInput:focus-within {
  border-color: var(--sync-blue);
  box-shadow: 0 0 0 4px rgba(18, 98, 241, 0.08);
}
.PhoneInputCountry {
  margin: 0;
  padding: 0 10px 0 13px;
  border-right: 1px solid var(--border);
}
.PhoneInputCountrySelect { cursor: pointer; }
.PhoneInputCountryIcon { width: 24px; height: 17px; box-shadow: none; }
.PhoneInputCountrySelectArrow { color: var(--muted); opacity: 1; }
.form-control .PhoneInputInput {
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0 14px 14px 0;
  outline: none;
  box-shadow: none;
}
.form-control .PhoneInputInput:focus { border: 0; box-shadow: none; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: radial-gradient(circle at top right, rgba(22, 213, 198, 0.14), transparent 30%), var(--background);
}
.auth-card {
  width: min(590px, 100%);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.auth-logo { display: flex; justify-content: center; margin: -6px 0 20px; }
.auth-logo .brand-logo { height: 125px !important; max-width: 100%; }
.auth-copy { margin-bottom: 24px; }
.auth-copy h1 { margin: 0; font-size: clamp(31px, 6vw, 44px); letter-spacing: -0.05em; }
.auth-copy p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.auth-footer { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-footer a { color: var(--sync-blue); font-weight: 800; }
.auth-actions { display: grid; gap: 10px; margin-top: 4px; }
.auth-secondary-link { color: var(--sync-blue); font-size: 12px; font-weight: 800; text-align: right; }

.board-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.board-search { display: flex; min-width: 240px; flex: 1; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--muted); }
.board-search input { width: 100%; padding: 11px 0; border: 0; outline: 0; }
.board-grid { display: grid; grid-template-columns: repeat(7, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.board-column { min-height: 500px; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: #f7f9fd; }
.board-column__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.board-column__header h2 { margin: 0; font-size: 14px; }
.task-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: #fff; cursor: pointer; text-align: left; }
.task-card:hover { border-color: #bdd6ff; box-shadow: 0 10px 28px rgba(16,29,53,.06); }
.task-card__top, .task-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-card h3 { margin: 0; font-size: 13px; line-height: 1.45; }
.task-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.task-card__meta { color: var(--muted); font-size: 10px; }
.task-detail-layer { position: fixed; inset: 0; z-index: 65; visibility: hidden; pointer-events: none; }
.task-detail-layer--open { visibility: visible; pointer-events: auto; }
.task-detail-layer--open .drawer-backdrop { opacity: 1; }
.task-detail-drawer { position: absolute; top: 0; right: 0; width: min(520px, 95vw); height: 100dvh; overflow-y: auto; padding: 22px; border-left: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-drawer); transform: translateX(100%); transition: transform 220ms ease; }
.task-detail-layer--open .task-detail-drawer { transform: translateX(0); }
.task-detail-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.task-detail-header h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -0.04em; }
.task-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

@media (max-width: 980px) {
  .content-grid--4, .content-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-layout { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-height: 98px; }
  .app-header { padding: 0 14px; }
  .brand-logo { height: 76px !important; max-width: calc(100vw - 92px); }
  .hamburger-button { width: 54px; height: 54px; flex-basis: 54px; }
  .app-content { padding: 22px 16px 94px; }
  .assistant-launcher { right: 14px; bottom: 14px; }
  .assistant-launcher span { display: none; }
  .assistant-launcher { width: 60px; height: 60px; padding: 8px; justify-content: center; }
  .assistant-layout { display: flex; flex-direction: column; overflow-y: auto; }
  .assistant-history { max-height: 285px; border-right: 0; border-bottom: 1px solid var(--border); }
  .assistant-conversation { min-height: 620px; }
  .assistant-conversation__context { align-items: stretch; flex-direction: column; }
  .scope-selector select { width: 100%; }
  .assistant-memory-note { align-items: flex-start; flex-wrap: wrap; }
  .chat-message { max-width: 92%; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .content-grid--4, .content-grid--3, .content-grid--2, .form-grid { grid-template-columns: 1fr; }
  .form-control--full { grid-column: auto; }
  .auth-card { padding: 26px 20px; }
  .auth-logo .brand-logo { height: 125px !important; }
  .navigation-user { align-items: flex-start; flex-direction: column; }
}


/* Step 6 task-management vertical slice */
.inline-notice { padding: 12px 15px; border: 1px solid #bceee8; border-radius: 14px; background: #effcf9; color: #08766d; font-size: 13px; font-weight: 750; }
.board-column { transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.board-column--over { border-color: var(--sync-teal); background: #eefdfb; box-shadow: 0 0 0 4px rgba(22,213,198,.12); }
.board-column__header > div { display: grid; gap: 3px; }
.board-column__header small { color: var(--muted); font-size: 10px; }
.board-column__empty { display: grid; min-height: 82px; place-items: center; border: 1px dashed #cfd9e8; border-radius: 16px; color: var(--muted); font-size: 11px; }
.task-card { padding: 0; overflow: hidden; }
.task-card--dragging { z-index: 5; opacity: .65; box-shadow: 0 18px 45px rgba(16,29,53,.15); }
.task-card__top { padding: 10px 10px 0 13px; }
.task-card__body { display: grid; width: 100%; gap: 10px; padding: 4px 13px 13px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.task-card__badges { display: flex; flex-wrap: wrap; gap: 5px; }
.task-drag-handle { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: grab; }
.task-drag-handle:hover { background: rgba(22,213,198,.14); color: var(--navy); }
.task-drag-handle:active { cursor: grabbing; }
.task-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.modal-layer { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
.modal-layer--open { visibility: visible; pointer-events: auto; }
.modal-layer--open .drawer-backdrop { opacity: 1; }
.task-create-modal { position: absolute; top: 50%; left: 50%; width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 24px; border: 1px solid var(--border); border-radius: 26px; background: #fff; box-shadow: var(--shadow-drawer); transform: translate(-50%, -47%) scale(.98); opacity: 0; transition: opacity 180ms ease, transform 180ms ease; }
.modal-layer--open .task-create-modal { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.dependency-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dependency-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.dependency-add select { min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 13px; background: #fff; color: var(--navy); }
.empty-copy { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 620px) {
  .dependency-add { grid-template-columns: 1fr; }
  .task-create-modal { padding: 20px; }
}


/* v0.1.6 workspace, project creation, and Viewr interaction refinements */
.workspace-card-link { display: block; color: inherit; text-decoration: none; }
.workspace-card-link .ui-card { height: 100%; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.workspace-card-link:hover .ui-card { transform: translateY(-2px); border-color: #b8d4ff; box-shadow: 0 18px 42px rgba(16,29,53,.08); }
.workspace-card-link:focus-visible { outline: 3px solid rgba(22,213,198,.34); outline-offset: 5px; border-radius: var(--radius-lg); }
.workspace-card-link__action { display: inline-flex; margin-top: 14px; color: var(--sync-blue); font-size: 13px; font-weight: 800; }

.existing-workspaces { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.existing-workspaces > strong { font-size: 13px; }
.existing-workspaces > small { color: var(--muted); }
.existing-workspaces__list { display: flex; flex-wrap: wrap; gap: 8px; }
.existing-workspaces__list a { padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--sync-blue); font-size: 12px; font-weight: 800; }
.existing-workspaces__list a:hover { border-color: #b8d4ff; background: #f5f9ff; }

.empty-state-panel { display: grid; justify-items: start; gap: 10px; padding: 20px; border: 1px dashed #cbd8e8; border-radius: 20px; background: #fbfdff; }
.empty-state-panel h2, .empty-state-panel h3, .empty-state-panel p { margin: 0; }
.empty-state-panel p, .helper-text { color: var(--muted); }
.helper-text { margin-top: 16px; font-size: 13px; }
.list-card__row, .section-heading__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.list-card__badges { display: flex; gap: 7px; flex-wrap: wrap; }
.text-link { color: var(--sync-blue); font-size: 13px; font-weight: 800; }

.demo-panel { border-style: dashed; }
.viewr-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: minmax(118px, auto); gap: 12px; }
.viewr-project-block { min-height: 125px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg,var(--sync-blue),var(--flow-cyan)); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.viewr-project-block:nth-child(even) { background: linear-gradient(135deg,var(--flow-cyan),var(--ease-teal)); }
.viewr-project-block:hover { transform: translateY(-2px); box-shadow: 0 18px 35px rgba(18,98,241,.18); }
.viewr-project-block--large { min-height: 190px; grid-row: span 2; }
.viewr-project-block--demo { border: 2px dashed rgba(255,255,255,.62); cursor: default; opacity: .88; }
.viewr-project-block--demo:hover { transform: none; box-shadow: none; }
.viewr-project-block__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

@media (max-width: 680px) {
  .viewr-block-grid { grid-template-columns: 1fr; }
  .viewr-project-block--large { grid-row: auto; min-height: 150px; }
}

/* v0.1.8 stage navigation and AI-first task creation */
.metric--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.metric--link:hover {
  transform: translateY(-2px);
  border-color: #b8d4ff;
  background: #f5f9ff;
  box-shadow: 0 14px 32px rgba(16,29,53,.07);
}
.metric--link:focus-visible {
  outline: 3px solid rgba(22,213,198,.38);
  outline-offset: 3px;
}
.board-column--focused {
  border-color: var(--sync-teal);
  background: #f0fffc;
  box-shadow: 0 0 0 5px rgba(22,213,198,.15), 0 18px 42px rgba(16,29,53,.08);
}
.board-column__actions {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px !important;
}
.task-create-modal--ai {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
}
.ai-task-builder {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
.ai-task-chat {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--border);
  background: #f8fbff;
}
.ai-task-chat__intro {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--sync-blue);
}
.ai-task-chat__intro strong,
.ai-task-chat__intro small { display: block; }
.ai-task-chat__intro small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.ai-task-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 18px;
}
.ai-task-message {
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 17px;
  font-size: 12px;
  line-height: 1.55;
}
.ai-task-message strong { display: block; margin-bottom: 4px; font-size: 11px; }
.ai-task-message p { margin: 0; color: inherit; }
.ai-task-message--assistant {
  align-self: flex-start;
  border: 1px solid #d9e8ff;
  border-bottom-left-radius: 6px;
  background: #eef6ff;
  color: #253a57;
}
.ai-task-message--user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--mind-navy);
  color: #fff;
}
.ai-task-composer {
  display: grid;
  gap: 10px;
  padding: 15px 18px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.ai-task-composer textarea { min-height: 96px; }
.ai-task-composer .ui-button { justify-self: start; }
.ai-task-review {
  min-width: 0;
  overflow-y: auto;
  padding: 20px;
}
.ai-task-review__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ai-task-review__heading h3 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.03em; }
.ai-task-review__empty {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px;
  border: 1px dashed #cbd8e8;
  border-radius: 20px;
  background: #fbfdff;
  color: var(--muted);
  text-align: center;
}
.ai-task-review__empty strong { color: var(--mind-navy); font-size: 18px; }
.ai-task-review__empty p { max-width: 420px; margin: 0; line-height: 1.65; }

@media (max-width: 900px) {
  .task-create-modal--ai { width: min(760px, calc(100vw - 24px)); }
  .ai-task-builder { grid-template-columns: 1fr; }
  .ai-task-chat { min-height: 480px; border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 620px) {
  .task-create-modal--ai { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); padding: 16px; border-radius: 20px; }
  .ai-task-review, .ai-task-chat__messages, .ai-task-composer { padding-left: 14px; padding-right: 14px; }
  .ai-task-review__heading { flex-direction: column; }
}


/* Step 6 v0.1.9: ready queue navigation and AI-first task workspace */
.list-card--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: inherit;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.list-card--link:hover {
  border-color: #9fc4ff;
  background: #f8fbff;
  transform: translateY(-1px);
}
.list-card--link:focus-visible {
  outline: 3px solid rgba(18, 98, 241, .2);
  outline-offset: 2px;
}
.task-detail-drawer--ai {
  width: min(1180px, 97vw);
  padding: 22px;
}
.task-detail-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.task-edit-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: calc(100dvh - 145px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
.task-edit-ai-chat {
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--border);
  background: #f8fbff;
}
.task-phase-guidance {
  display: grid;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.task-phase-guidance .ui-badge { justify-self: start; }
.task-phase-guidance p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.task-edit-ai-chat__messages { min-height: 320px; }
.task-edit-ai-composer small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.task-edit-fields {
  min-width: 0;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
}
.task-detail-actions--sticky {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  padding: 14px 0 4px;
  background: linear-gradient(to top, #fff 78%, rgba(255,255,255,0));
}
@media (max-width: 980px) {
  .task-edit-ai-layout { grid-template-columns: 1fr; overflow: visible; }
  .task-edit-ai-chat { min-height: 560px; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 620px) {
  .task-detail-drawer--ai { width: 100vw; padding: 14px; }
  .task-edit-fields, .task-phase-guidance, .task-edit-ai-chat__messages, .task-edit-ai-composer { padding-left: 14px; padding-right: 14px; }
}


/* Step 6 v0.1.10 — 24-hour session renewal */
.form-notice {
  border: 1px solid rgba(18, 98, 241, .22);
  border-radius: 16px;
  background: #eef6ff;
  color: #17416f;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.5;
}

.session-expiry-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.session-expiry-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 29, 53, .62);
  backdrop-filter: blur(7px);
}

.session-expiry-dialog {
  position: relative;
  width: min(540px, 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-drawer);
  padding: 26px;
}

.session-expiry-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}

.session-expiry-brand .eyebrow { margin: 0 0 4px; }
.session-expiry-brand h2 { margin: 0; }

.session-expiry-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(18, 98, 241, .10), rgba(22, 213, 198, .18));
  flex: 0 0 auto;
}

.session-expiry-icon img {
  width: 36px;
  height: 36px;
  -o-object-fit: contain;
     object-fit: contain;
}

.session-expiry-time-card {
  display: grid;
  gap: 7px;
  margin: 20px 0;
  padding: 17px;
  border: 1px solid #dceafe;
  border-radius: 19px;
  background: #f7fbff;
}

.session-expiry-time-card span,
.session-expiry-time-card small { color: var(--muted); }
.session-expiry-time-card strong { color: var(--navy); line-height: 1.45; }

.session-expiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 20px;
}

@media (max-width: 560px) {
  .session-expiry-layer { padding: 12px; }
  .session-expiry-dialog { padding: 20px; border-radius: 22px; }
  .session-expiry-actions { display: grid; }
  .session-expiry-actions button { width: 100%; justify-content: center; }
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./node_modules/react-phone-number-input/style.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************/
/* CSS variables. */
:root {
	--PhoneInput-color--focus: #03b2cb;
	--PhoneInputInternationalIconPhone-opacity: 0.8;
	--PhoneInputInternationalIconGlobe-opacity: 0.65;
	--PhoneInputCountrySelect-marginRight: 0.35em;
	--PhoneInputCountrySelectArrow-width: 0.3em;
	--PhoneInputCountrySelectArrow-marginLeft: var(--PhoneInputCountrySelect-marginRight);
	--PhoneInputCountrySelectArrow-borderWidth: 1px;
	--PhoneInputCountrySelectArrow-opacity: 0.45;
	--PhoneInputCountrySelectArrow-color: currentColor;
	--PhoneInputCountrySelectArrow-color--focus: var(--PhoneInput-color--focus);
	--PhoneInputCountrySelectArrow-transform: rotate(45deg);
	--PhoneInputCountryFlag-aspectRatio: 1.5;
	--PhoneInputCountryFlag-height: 1em;
	--PhoneInputCountryFlag-borderWidth: 1px;
	--PhoneInputCountryFlag-borderColor: rgba(0,0,0,0.5);
	--PhoneInputCountryFlag-borderColor--focus: var(--PhoneInput-color--focus);
	--PhoneInputCountryFlag-backgroundColor--loading: rgba(0,0,0,0.1);
}

.PhoneInput {
	/* This is done to stretch the contents of this component. */
	display: flex;
	align-items: center;
}

.PhoneInputInput {
	/* The phone number input stretches to fill all empty space */
	flex: 1;
	/* The phone number input should shrink
	   to make room for the extension input */
	min-width: 0;
}

.PhoneInputCountryIcon {
	width: calc(var(--PhoneInputCountryFlag-height) * var(--PhoneInputCountryFlag-aspectRatio));
	height: var(--PhoneInputCountryFlag-height);
}

.PhoneInputCountryIcon--square {
	width: var(--PhoneInputCountryFlag-height);
}

.PhoneInputCountryIcon--border {
	/* Removed `background-color` because when an `<img/>` was still loading
	   it would show a dark gray rectangle. */
	/* For some reason the `<img/>` is not stretched to 100% width and height
	   and sometime there can be seen white pixels of the background at top and bottom. */
	background-color: var(--PhoneInputCountryFlag-backgroundColor--loading);
	/* Border is added via `box-shadow` because `border` interferes with `width`/`height`. */
	/* For some reason the `<img/>` is not stretched to 100% width and height
	   and sometime there can be seen white pixels of the background at top and bottom,
	   so an additional "inset" border is added. */
	box-shadow: 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),
		inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor);
}

.PhoneInputCountryIconImg {
	/* Fixes weird vertical space above the flag icon. */
	/* https://gitlab.com/catamphetamine/react-phone-number-input/-/issues/7#note_348586559 */
	display: block;
	/* 3rd party <SVG/> flag icons won't stretch if they have `width` and `height`.
	   Also, if an <SVG/> icon's aspect ratio was different, it wouldn't fit too. */
	width: 100%;
	height: 100%;
}

.PhoneInputInternationalIconPhone {
	opacity: var(--PhoneInputInternationalIconPhone-opacity);
}

.PhoneInputInternationalIconGlobe {
	opacity: var(--PhoneInputInternationalIconGlobe-opacity);
}

/* Styling native country `<select/>`. */

.PhoneInputCountry {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: center;
	margin-right: var(--PhoneInputCountrySelect-marginRight);
}

.PhoneInputCountrySelect {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 1;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.PhoneInputCountrySelect[disabled],
.PhoneInputCountrySelect[readonly] {
	cursor: default;
}

.PhoneInputCountrySelectArrow {
	display: block;
	content: '';
	width: var(--PhoneInputCountrySelectArrow-width);
	height: var(--PhoneInputCountrySelectArrow-width);
	margin-left: var(--PhoneInputCountrySelectArrow-marginLeft);
	border-style: solid;
	border-color: var(--PhoneInputCountrySelectArrow-color);
	border-top-width: 0;
	border-bottom-width: var(--PhoneInputCountrySelectArrow-borderWidth);
	border-left-width: 0;
	border-right-width: var(--PhoneInputCountrySelectArrow-borderWidth);
	transform: var(--PhoneInputCountrySelectArrow-transform);
	opacity: var(--PhoneInputCountrySelectArrow-opacity);
}

.PhoneInputCountrySelect:focus + .PhoneInputCountryIcon + .PhoneInputCountrySelectArrow {
	opacity: 1;
	color: var(--PhoneInputCountrySelectArrow-color--focus);
}

.PhoneInputCountrySelect:focus + .PhoneInputCountryIcon--border {
	box-shadow: 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),
		inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus);
}

.PhoneInputCountrySelect:focus + .PhoneInputCountryIcon .PhoneInputInternationalIconGlobe {
	opacity: 1;
	color: var(--PhoneInputCountrySelectArrow-color--focus);
}
