


:root {

  /* Colors */
  --bg: Grey;
  --text: White;
  --primary: royalblue;
  --danger: crimson;
  --success: seagreen;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;

  --hr-height: 4px;          /* visual thickness */
  --hr-color: Purple;       /* line color */
  --duration: 1600ms;       /* one cycle duration */
  --min-scale: 0.1;        /* how short the line becomes (0..1) */
  --easing: cubic-bezier(.4,0,.2,1);

  /* Fonts */
  --font-base: 'Inter', sans-serif;
  --font-size-sm: 0.8rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.2rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Backgrounds */
  --bg-main: Grey;
  --bg-primary: #222222;
  --bg-secondary: #222222;
  --bg-tertiary: #333333;
  --bg-overlay: rgba(0, 0, 0, 0.6);
  --bg-disabled: #f0f0f0;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-selection : Purple;
  --bg-code: #111111;
  --bg-button: Black;

  /* Foregrounds */
  --fg-main: White;
  --fg-primary: #efefef;
  --fg-secondary: #efefef;
  --fg-tertiary: #555555;
  --fg-muted: #888888;
  --fg-inverse: Black;
  --fg-glow: #ffffffcc;
  --fg-selection: Yellow;
  --fg-button: Lime;

  /* Accent & Links */
  --accent: #0066cc;
  --accent-hover: #005bb5;
  --accent-muted: #99ccee;
  --accent-active: #004080;
  --accent-glow: #66ccff;

  --link: #0066cc;
  --link-hover: #004c99;

  /* Status Colors */
  --success: #28a745;
  --error: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;

  /* Borders & Shadows */
  --border: #cccccc;
  --border-light: #e0e0e0;
  --border-width: 1px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-deep: rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', monospace;
  --font-heading: 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body: var(--font-sans);

  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;

  /* Spacing & Layout */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --max-width: 1200px;

  --wrapper-width: 100%;
  --wrapper-width-sm: 150px;
  --wrapper-width-md: 200px;
  --wrapper-width-lg: 250px;

  --preview-height: 150px;
  --preview-height-sm: 100px;
  --preview-height-md: 150px;
  --preview-height-lg: 200px;


  /* sizing */
  --ico-size: 16px;
  --ico-size-desktop: 16px;
  --ico-size-mobile: 12px;
  --ico-border-radius: 8px;
  --ico-border-radius-desktop: 8px;
  --ico-border-radius-mobile: 6px;
  --icon-size: 32px;
  --icon-size-desktop: 32px;
  --icon-size-mobile: 24px;
  --icon-border-radius: 32px;
  --icon-border-radius-desktop: 32px;
  --icon-border-radius-mobile: 24px;

  /* Transitions & Layers */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease-out;
  --transition: all 0.5s ease;

  --z-base: 1;
  --z-overlay: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;

  /* Semantic Zones */
  --panel-bg: var(--bg-secondary);
  --panel-border: var(--border);
  --panel-shadow: var(--shadow);

  --footer-bg: var(--bg-tertiary);
  --footer-fg: var(--fg-muted);

  --primary-rgb: 150, 129, 128; /* example */


}

/* Dark mode overrides */
:root.dark {
  --bg: #1a1a1a;
  --text: #eeeeee;
  --primary: dodgerblue;
  --danger: tomato;
  --success: limegreen;

  --bg-main: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2a2a2a;

  --fg-main: #f5f5f5;
  --fg-secondary: #cccccc;
  --fg-tertiary: #aaaaaa;

  --accent: #3399ff;
  --accent-hover: #4dabf7;

  --border: #444444;
  --border-light: #2e2e2e;

  --shadow: rgba(0, 0, 0, 0.3);

  --link: #66b2ff;
  --link-hover: #3399ff;

  --success: #28d17b;
  --error: #ff6b6b;
  --warning: #ffc93c;
  --info: #1ecbe1;

  --font-sans: 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', monospace;
}




@media (max-width: 768px) {
  :root {
    --icon-size: var(--icon-size-mobile);
    --icon-border-radius: var(--icon-border-radius-mobile);
  }
}




::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px var(--bg);
    border-radius: var(--space-xl);
}

::-webkit-scrollbar-thumb {
  border-radius: var(--space-sm);
/*  background: linear-gradient(
    to bottom,
    rgba(var(--primary-rgb), 0.4) 0%,
                              rgba(var(--primary-rgb), 1)   50%,
                              rgba(var(--primary-rgb), 0.4) 100%
  );*/
/*  background: linear-gradient(
    to bottom,
    rgba(var(--primary-rgb), 0.25) 0%,
                              rgba(var(--primary-rgb), 0.6)  25%,
                              rgba(var(--primary-rgb), 1)    50%,
                              rgba(var(--primary-rgb), 0.6)  75%,
                              rgba(var(--primary-rgb), 0.25) 100%
  );*/
  background: linear-gradient(
    to bottom,
    rgba(var(--primary-rgb), 0.4),
                  rgba(var(--primary-rgb), 1),
                  rgba(var(--primary-rgb), 0.4)
  ),
  linear-gradient(
    to right,
    rgba(255,255,255,0.25),
                  rgba(255,255,255,0),
                  rgba(0,0,0,0.2)
  );

}
::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.1);
}


*:hover {
    border-radius : var(--radius-sm);
}

*::selection {
    background-color: var(--bg-selection);
    color:var(--fg-selection);
}

* {
  background: transparent;
  color:var(--fg-main);
}

input:focus,
textarea:focus,
select:focus,
button:focus,
[contenteditable]:focus {
  outline: none;
/*   box-shadow: none; */
}
/*input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}*/

html {
/*    background-image: url('/backdrop');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment: fixed;*/
    background-color: var(--bg);
    color:var(--text);
    height:100%;
    margin:0;
    padding:0;
    font-family: Arial, sans-serif;
    /**
    * 1. Correct the line height in all browsers.
    * 2. Prevent adjustments of font size after orientation changes in iOS.
    */
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}



body {
    background: transparent;
/*     background: url('/backdrop/live') center/cover no-repeat; */
    color: var(--text);
    font-family: var(--font-base);
    font-size: var(--font-size-md);
    transition: background 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    min-height:100%;
    overflow-x: hidden;
/*     text-align: center; */
}
textarea {
  display: block;
  width: 100%;
/*   margin: 0 auto; */
}

pre {
  background-color: var(--bg-code);
  overflow-x: auto;
  white-space: pre;
  display: block;
/*   width: 80%; */
  max-width: 100%;
}

pre,code { text-align: left;}
.code-block {
  position: relative;
  margin: 1em 0;
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  /*   color: #94a3b8; */
  background: linear-gradient(
    to right,
    rgba(var(--primary-rgb), 0.4),
                              rgba(var(--primary-rgb), 1),
                              rgba(var(--primary-rgb), 0.4)
  ),
  linear-gradient(
    to right,
    rgba(255,255,255,0.25),
                  rgba(255,255,255,0),
                  rgba(0,0,0,0.2)
  );
}

.code-lang {
  text-transform: uppercase;
  letter-spacing: .04em;
}

.code-block pre {
  margin: 0;
  padding: 12px;
}


/*
code {
  background-color: var(--bg-code);
  width: 100%;
  overflowX: auto;
}*/
/*pre code {
  background-color: var(--bg-code);
  overflow-x: auto;
  white-space: pre;
  display: block;
  max-width: 100%;
}*/

input {
    height: var(--space-lg);
    width: 96%;
    text-align: center;
}


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


.favicon {
    background: url('/favicon.ico') center/contain no-repeat;
}


/* container for the 'hr' (keeps semantics optional) */
.fancy-hr{
  width: 100%;
  display: block;
  margin: 1.25rem 0;
  height: var(--hr-height);
  overflow: visible; /* let SVG breathe */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the SVG spans the full width but the visible line is centered */
.fancy-hr svg{
  width: 100%;
  height: var(--hr-height);
  display: block;
}

/* the single line — we use transform:scaleX to shorten/expand centered */
.fancy-hr line{
  stroke: var(--hr-color);
  stroke-width: var(--hr-height);
  stroke-linecap: round;
  /* make the transform origin the center of the viewport */
  transform-origin: 50% 50%;
  transform-box: fill-box; /* ensures origin is inside SVG's object box */
  animation: shrinkExpand var(--duration) var(--easing) infinite;
  will-change: transform;
}

@keyframes shrinkExpand{
  0%   { transform: scaleX(1); }
  45%  { transform: scaleX(calc(var(--min-scale) + 0.02)); }
  55%  { transform: scaleX(calc(var(--min-scale) + 0.02)); }
  100% { transform: scaleX(1); }
}

button,
select,
.btn {
  background: var(--bg-main);
  color: var(--fg-main);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  height: var(--icon-size);
}

.btn-user {
    background: url('/face') center/contain no-repeat;
}



/* Variants */
.btn-primary { background: var(--primary); color: var(--text); }
.btn-danger  { background: var(--danger);  color: var(--text); }
.btn-success { background: var(--success); color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* Sizes */
.btn-sm  { padding: var(--space-xs) var(--space-sm); font-size: var(--font-size-sm); }
.btn-md  { padding: var(--space-sm) var(--space-md); font-size: var(--font-size-md); }
.btn-lg  { padding: var(--space-md) var(--space-lg); font-size: var(--font-size-lg); }

/* Icon-style (square) */
.btn-icon {
  padding: var(--space-sm);
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius:var(--icon-border-radius);
  justify-content: center;
}

.ico-copy {
  position: relative;
}

.ico-copy::after {
  content: '';
  position: absolute;
  inset: 0;
}

.ico-copy[data-state="copied"]::after {
  content: 'Copied';
  display: grid;
  place-items: center;
  font-size: 12px;
  background: rgba(0,0,0,.6);
  color: white;
  border-radius: 4px;
}


.icon-ai-bot {/*
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius:var(--icon-border-radius);*/
  background: url('/icon/ai-bot') center/contain no-repeat;
  cursor: pointer;
}

.ico-copy {/*
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius:var(--icon-border-radius);*/
  background: url('/icon/copy') center/contain no-repeat;
  cursor: pointer;
}
.face {/*
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius:var(--icon-border-radius);*/
  background: url('/face') center/contain no-repeat;
  cursor: pointer;
}
.icon {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius:var(--icon-border-radius);
  cursor: pointer;
}
.ico {
  width: var(--ico-size);
  height: var(--ico-size);
  border-radius:var(--ico-border-radius);
  cursor: pointer;
}
.bg-live {
  background-image: url('/backdrop/live');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment: fixed;
}
.panel {
    width: 100%;
    background-image: url('/backdrop/live');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment: fixed;
    background-color: var(--bg-glass);
    color: var(--primary);
    font-size: var(--font-size-xl);
    font-weight: 500;
    border-bottom: 1px solid #333;  /* Subtle separator */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.panel-bottom {
  margin-bottom: -16px;
}

/* Main Panel Styling */
.mainPanel {
    width: 100%;
    background-image: url('/backdrop/live');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment: fixed;
    background-color: var(--bg-glass);      /* Dark theme base */
    color: var(--primary);                 /* Light text for contrast */
    font-size: var(--font-size-xl);
    font-weight: 500;
    border-bottom: 1px solid #333;  /* Subtle separator */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.mainPanel:hover,
.mainPanel.scrolled {
    background-color: var(--bg-overlay);
    box-shadow: 0 2px 6px var(--shadow);
}




.mainSearchBox {
    font-size: var(--font-size-md);
    background: var(--bg-glass);
    color: var(--fg-main)
    width: 60%;
    height: var(--icon-size);
    border-radius:var(--icon-border-radius);
}












.offscreen {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
}


.offscreen-top {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
}

.offscreen-bottom {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
}

.offscreen-left {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100%;
}

.offscreen-right {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
}


/* Horizontal Flex Layout */

.horFlex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-left: auto;
  margin-right: auto; /* Centers this block */
}


.verFlex {
  display: flex;
  flex-direction: column;       /* Stack items vertically */
  align-items: flex-start;      /* Align items horizontally (start by default) */
  justify-content: flex-start;  /* Align items vertically */
  gap: 1rem;                    /* Spacing between items */
}
.flexCenter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.flexAround {
  display: flex;
  justify-content: space-around; /* Items spread with space around each */
  align-items: center;
}

.flexEven {
  display: flex;
  justify-content: space-evenly; /* Equal spacing between items and edges */
  align-items: center;
}
.flexWrap {
  display: flex;
  flex-wrap: wrap;      /* Items go to next line if no space */
  gap: 1rem;
}
.horFlexReverse { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 1rem; }
.verFlexReverse { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-start; gap: 1rem; }



/* Sticky Top Panel */
.stickyTop {
  position: sticky;
  top: 0;
  z-index: 1000;             /* Ensure it stays above other content */
  background-color: inherit; /* Keeps background consistent */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional subtle shadow */
}
.stickyBottom {
  position: sticky;
  bottom: 0;
  z-index: 1000;             /* Ensure it stays above other content */
  background-color: inherit; /* Keeps background consistent */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional subtle shadow */
}
.stickrelbot {
  position: relative;
  bottom: 0;
  z-index: 1000;             /* Ensure it stays above other content */
  background-color: inherit; /* Keeps background consistent */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional subtle shadow */
}

.horiScroll {
  overflow-x: none;
  overflow-y: hidden;
}
.vertScroll {
  overflow-x: hidden;
  overflow-y: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.col {
  flex: 1;
  min-width: 200px;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}


.hidden {
    display:none;
}

.inline {
    display:inline;
}
/* line *//* link */
.logo {
    display:inline;
}

/* Utility Classes */
.m-0 { margin: 0; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.ml-1 { margin-left: 1rem; }
.mr-1 { margin-right: 1rem; }

.p-0 { padding: 0; }
.pt-1 { padding-top: 1rem; }
.pb-1 { padding-bottom: 1rem; }
.pl-1 { padding-left: 1rem; }
.pr-1 { padding-right: 1rem; }

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}


/* Cards */
.card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-body {
  font-size: 1rem;
  color: var(--fg-secondary);
}

.card-footer {
  text-align: right;
  font-size: 0.875rem;
  color: var(--fg-tertiary);
}






/* Margin */
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-xs { margin-bottom: var(--space-xs); }
.ml-xs { margin-left: var(--space-xs); }
.mr-xs { margin-right: var(--space-xs); }
/* repeat for sm, md, lg as needed */

/* Padding */
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.pt-xs { padding-top: var(--space-xs); }
.pb-xs { padding-bottom: var(--space-xs); }
.pl-xs { padding-left: var(--space-xs); }
.pr-xs { padding-right: var(--space-xs); }
/* repeat for sm, md, lg */


/* Display */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }
.d-flex { display: flex; }

/* Flex alignment */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }




/* Dynamic via CSS variables */
.w-auto  { width: auto; }
.h-auto  { height: auto; }

/* .w-[50%] { width: 50%; } /* or generate dynamically via preprocessor */


.wide {
  width: 100%;
}



.slideHide { transform: translateY(-100%); opacity: 0; }
.offScreen { transform: translateY(-100%); opacity: 0; }
.offScreen-top { transform: translateY(-100%); opacity: 0; }
.offScreen-bottom { transform: translateY(100%); opacity: 0; }
.offScreen-left { transform: translateX(-100%); opacity: 0; }
.offScreen-right { transform: translateX(100%); opacity: 0; }


.offScreen--top { transform: translateY(-100%); opacity: 0; }
.offScreen--bottom { transform: translateY(100%); opacity: 0; }
.offScreen--left { transform: translateX(-100%); opacity: 0; }
.offScreen--right { transform: translateX(100%); opacity: 0; }



.slowmo {
    transition: transform 500ms ease-out, opacity 500ms ease-out;
}





.no-scroll {
  overflow: hidden;
}


.mh-90vh {
  max-height: 90vh;
}

.fixed-position {
  position: fixed;
}
.bg-overlay {
  background: var(--bg-overlay);
}

.bg-glass {
  background: var(--bg-glass);
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
/*     text-align: center; */
}

.modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--bg-glass);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  padding: 1rem;
  transition: max-width .25s ease, width .25s ease;

  max-height: 90vh;      /* ❗ keep modal inside screen */
  overflow-y: hidden;
  overflow-x: hidden;
}

.modal-wide .modal-content {
  max-width: 900px;
  width: 90vw;
  padding: 1.5rem;
  max-height: 90vh;      /* keep the constraint */
  overflow-y: auto;      /* inherit or set explicitly */
}

/*@media (min-width: 1200px) {
  .modal-wide .modal-content {
    max-width: 1000px;
  }
}*/

.modal-title {
/*   text-align: center; */
}

.modal-body {
  overflow-y: hidden;
  overflow-x: hidden;
/*   text-align: center; */
/*  display: flex;
  justify-content: center;
  align-items: center;*/
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-footer {
/*   text-align: center; */
}



.ai-container {
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
}
.ai-chat {
  max-height: 80%;
  max-width: 100%;
  width: 100%;
  height: 60vh;
  overflow-y: hidden;
  overflow-x: auto;
}
.ai-input-container {
  max-height: 20%;
  max-width: 100%;
  width: 100%;
  height: 10%;
  position: sticky;
  bottom: 0;
}
.ai-input {

  min-width: 80%;
  max-width: 90%;

  max-height: 20%;
  min-height: 2%;

  height: auto;

  padding: var(--space-md);
  margin: var(--space-md);
  border-radius: var(--radius-lg);

  box-shadow: 2px 8px 12px 6px var(--shadow-deep);
  border: none;
}
.ai-panel {
  max-height: 5%;
  max-width: 100%;
  width: 100%;
  height: 2.5%;
}
.ai-aside {

  max-height: 100%;
  max-width: 30%;
  width: 30%;
  height: 100%;
  float: left;
}

.ai-question,.ai-answer {
  min-width: 80%;
  max-width: 90%;
  padding: var(--space-md);
  margin: var(--space-md);
  border-radius: var(--space-sm);
  clear: both;
}
.ai-question {
  box-shadow: 2px 8px 12px -6px var(--shadow-deep);
  border-right: 1px solid var(--border);
  float:right;
}
.ai-answer {
  box-shadow: -2px 8px 12px -6px var(--shadow-deep);
  border-left: 1px solid var(--border);
  float: left;
}




.profile-page {
    background: transparent;
    font-family: system-ui, sans-serif;
}

.profile-header {
    background: transparent;
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ---- Cover ---- */
.cover-container {
    background: transparent;
    position: relative;
    height: 256px;
    overflow: hidden;
}

.cover-container img.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-cover-change {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.cover-container:hover .btn-cover-change {
  opacity: 1;
}

/* ---- Profile Image ---- */
.profile-info {
    background: transparent;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 16px 16px;
}

.profile-image-container {
    background: transparent;
  position: absolute;
  bottom: -50px;
  left: 16px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-profile-change {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s;
}

.profile-image-container:hover .btn-profile-change {
  opacity: 1;
}

/* ---- Name & Controls ---- */
.profile-details {
  margin-left: 180px; /* offset for floating image */
  flex: 1;
}

.profile-details .fullname {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
}

.profile-controls {
  margin-top: 8px;
  background: transparent;
}

.profile-controls .btn-control {
  margin-right: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

/*.profile-controls .btn-control:hover {
    background: transparent;
}*/



.nobg { background: transparent; }

.float-right { float:right; }
.float-left { float:left; }

#___gcse_0 { transform: translateY(-100%); opacity: 0; }


.wrapper {
  margin: var(--space-lg);
  padding: var(--space-lg);
}

.wrapper-sm { width: var(--wrapper-width-sm); }
.wrapper-md { width: var(--wrapper-width-md); }
.wrapper-lg { width: var(--wrapper-width-lg); }



.preview-image {
  border-radius: 0.5rem;
  object-fit: contain;
  display: block;
}

.preview-sm { height: var(--preview-height-sm); }
.preview-md { height: var(--preview-height-md); }
.preview-lg { height: var(--preview-height-lg); }


   /* remote computer manager */

.rcmDesktop {
    height: var(--preview-height-md);
}


/* Container for all notifications */
#notifyContainer{
    background: url('/backdrop/live') center/cover no-repeat;
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
    pointer-events: none; /* allow clicks through gaps */
}

.notify{
    min-width: 240px;
    max-width: 360px;
/*     background: linear-gradient(180deg, #fff, #fafafa); */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 12px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    pointer-events: auto; /* enable clicks on the box */
    transform-origin: top right;
    animation: slideIn 260ms cubic-bezier(.2,.9,.2,1);
}

.notifyIcon{
    width: 36px;
    height: 36px;
    border-radius: 6px;
/*     background: #f0f0f3; */
    display: grid;
    place-items: center;
    font-weight: 700;
/*     color: #333; */
    flex-shrink: 0;
}

.notifyContent{
    flex: 1 1 auto;
    min-width: 0;
}

.notifyTitle{
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
/*     color: #111; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notifyBody{
    font-size: 13px;
    margin: 0;
/*     color: #444; */
    line-height: 1.2;
    max-height: 3.6em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notifyClose{
    margin-left: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
/*     color: #888; */
    padding: 4px;
}




.fs--3 { font-size: 0.512rem; } /* 1rem / 1.25^3  */
.fs--2 { font-size: 0.64rem;  } /* 1rem / 1.25^2  */
.fs--1 { font-size: 0.8rem;   } /* 1rem / 1.25    */
.fs-0  { font-size: 1rem;     } /* base           */
.fs-1  { font-size: 1.25rem;  } /* 1rem * 1.25    */
.fs-2  { font-size: 1.563rem; } /* 1rem * 1.25^2  */
.fs-3  { font-size: 1.953rem; } /* 1rem * 1.25^3  */
.fs-4  { font-size: 2.441rem; } /* 1rem * 1.25^4  */
.fs-5  { font-size: 3.052rem; } /* 1rem * 1.25^5  */


/* negative / small sizes — more spacing for readability */
.lh--3 { line-height: 1.55; }  /* micro text */
.lh--2 { line-height: 1.45; }  /* extra small */
.lh--1 { line-height: 1.35; }  /* small text */

/* base */
.lh-0  { line-height: 1.25; }  /* normal text */

/* positive sizes — tighter for headings */
.lh-1  { line-height: 1.20; }  /* title */
.lh-2  { line-height: 1.15; }  /* section title */
.lh-3  { line-height: 1.10; }  /* big heading */
.lh-4  { line-height: 1.05; }  /* main heading */
.lh-5  { line-height: 1.00; }  /* hero / display */



.image {
  /* Basic styling for the image container (optional, but good for demonstration) */
  width: 300px;
  height: 200px;
  background-color: #f0f0f0; /* Light background for visibility */
  border-radius: 8px; /* Slightly rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  color: #555;

  /* The cool box shadow */
  box-shadow:
  0 4px 6px rgba(0, 0, 0, 0.1), /* Main shadow, slightly below */
  0 10px 20px rgba(0, 0, 0, 0.08), /* Wider, softer shadow for depth */
  0 20px 40px rgba(0, 0, 0, 0.05); /* Even wider, very soft shadow */
}



.w-1 { width: 1%; } .h-1 { height: 1%; }
.w-2 { width: 2%; } .h-2 { height: 2%; }
.w-3 { width: 3%; } .h-3 { height: 3%; }
.w-4 { width: 4%; } .h-4 { height: 4%; }
.w-5 { width: 5%; } .h-5 { height: 5%; }
.w-6 { width: 6%; } .h-6 { height: 6%; }
.w-7 { width: 7%; } .h-7 { height: 7%; }
.w-8 { width: 8%; } .h-8 { height: 8%; }
.w-9 { width: 9%; } .h-9 { height: 9%; }
.w-10 { width: 10%; } .h-10 { height: 10%; }
.w-11 { width: 11%; } .h-11 { height: 11%; }
.w-12 { width: 12%; } .h-12 { height: 12%; }
.w-13 { width: 13%; } .h-13 { height: 13%; }
.w-14 { width: 14%; } .h-14 { height: 14%; }
.w-15 { width: 15%; } .h-15 { height: 15%; }
.w-16 { width: 16%; } .h-16 { height: 16%; }
.w-17 { width: 17%; } .h-17 { height: 17%; }
.w-18 { width: 18%; } .h-18 { height: 18%; }
.w-19 { width: 19%; } .h-19 { height: 19%; }
.w-20 { width: 20%; } .h-20 { height: 20%; }
.w-21 { width: 21%; } .h-21 { height: 21%; }
.w-22 { width: 22%; } .h-22 { height: 22%; }
.w-23 { width: 23%; } .h-23 { height: 23%; }
.w-24 { width: 24%; } .h-24 { height: 24%; }
.w-25 { width: 25%; } .h-25 { height: 25%; }
.w-26 { width: 26%; } .h-26 { height: 26%; }
.w-27 { width: 27%; } .h-27 { height: 27%; }
.w-28 { width: 28%; } .h-28 { height: 28%; }
.w-29 { width: 29%; } .h-29 { height: 29%; }
.w-30 { width: 30%; } .h-30 { height: 30%; }
.w-31 { width: 31%; } .h-31 { height: 31%; }
.w-32 { width: 32%; } .h-32 { height: 32%; }
.w-33 { width: 33%; } .h-33 { height: 33%; }
.w-34 { width: 34%; } .h-34 { height: 34%; }
.w-35 { width: 35%; } .h-35 { height: 35%; }
.w-36 { width: 36%; } .h-36 { height: 36%; }
.w-37 { width: 37%; } .h-37 { height: 37%; }
.w-38 { width: 38%; } .h-38 { height: 38%; }
.w-39 { width: 39%; } .h-39 { height: 39%; }
.w-40 { width: 40%; } .h-40 { height: 40%; }
.w-41 { width: 41%; } .h-41 { height: 41%; }
.w-42 { width: 42%; } .h-42 { height: 42%; }
.w-43 { width: 43%; } .h-43 { height: 43%; }
.w-44 { width: 44%; } .h-44 { height: 44%; }
.w-45 { width: 45%; } .h-45 { height: 45%; }
.w-46 { width: 46%; } .h-46 { height: 46%; }
.w-47 { width: 47%; } .h-47 { height: 47%; }
.w-48 { width: 48%; } .h-48 { height: 48%; }
.w-49 { width: 49%; } .h-49 { height: 49%; }
.w-50 { width: 50%; } .h-50 { height: 50%; }
.w-51 { width: 51%; } .h-51 { height: 51%; }
.w-52 { width: 52%; } .h-52 { height: 52%; }
.w-53 { width: 53%; } .h-53 { height: 53%; }
.w-54 { width: 54%; } .h-54 { height: 54%; }
.w-55 { width: 55%; } .h-55 { height: 55%; }
.w-56 { width: 56%; } .h-56 { height: 56%; }
.w-57 { width: 57%; } .h-57 { height: 57%; }
.w-58 { width: 58%; } .h-58 { height: 58%; }
.w-59 { width: 59%; } .h-59 { height: 59%; }
.w-60 { width: 60%; } .h-60 { height: 60%; }
.w-61 { width: 61%; } .h-61 { height: 61%; }
.w-62 { width: 62%; } .h-62 { height: 62%; }
.w-63 { width: 63%; } .h-63 { height: 63%; }
.w-64 { width: 64%; } .h-64 { height: 64%; }
.w-65 { width: 65%; } .h-65 { height: 65%; }
.w-66 { width: 66%; } .h-66 { height: 66%; }
.w-67 { width: 67%; } .h-67 { height: 67%; }
.w-68 { width: 68%; } .h-68 { height: 68%; }
.w-69 { width: 69%; } .h-69 { height: 69%; }
.w-70 { width: 70%; } .h-70 { height: 70%; }
.w-71 { width: 71%; } .h-71 { height: 71%; }
.w-72 { width: 72%; } .h-72 { height: 72%; }
.w-73 { width: 73%; } .h-73 { height: 73%; }
.w-74 { width: 74%; } .h-74 { height: 74%; }
.w-75 { width: 75%; } .h-75 { height: 75%; }
.w-76 { width: 76%; } .h-76 { height: 76%; }
.w-77 { width: 77%; } .h-77 { height: 77%; }
.w-78 { width: 78%; } .h-78 { height: 78%; }
.w-79 { width: 79%; } .h-79 { height: 79%; }
.w-80 { width: 80%; } .h-80 { height: 80%; }
.w-81 { width: 81%; } .h-81 { height: 81%; }
.w-82 { width: 82%; } .h-82 { height: 82%; }
.w-83 { width: 83%; } .h-83 { height: 83%; }
.w-84 { width: 84%; } .h-84 { height: 84%; }
.w-85 { width: 85%; } .h-85 { height: 85%; }
.w-86 { width: 86%; } .h-86 { height: 86%; }
.w-87 { width: 87%; } .h-87 { height: 87%; }
.w-88 { width: 88%; } .h-88 { height: 88%; }
.w-89 { width: 89%; } .h-89 { height: 89%; }
.w-90 { width: 90%; } .h-90 { height: 90%; }
.w-91 { width: 91%; } .h-91 { height: 91%; }
.w-92 { width: 92%; } .h-92 { height: 92%; }
.w-93 { width: 93%; } .h-93 { height: 93%; }
.w-94 { width: 94%; } .h-94 { height: 94%; }
.w-95 { width: 95%; } .h-95 { height: 95%; }
.w-96 { width: 96%; } .h-96 { height: 96%; }
.w-97 { width: 97%; } .h-97 { height: 97%; }
.w-98 { width: 98%; } .h-98 { height: 98%; }
.w-99 { width: 99%; } .h-99 { height: 99%; }
.w-100 { width: 100%; } .h-100 { height: 100%; }





/* 1. Wobble */
@keyframes wobble {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(6deg); }
  40%  { transform: rotate(-6deg); }
  60%  { transform: rotate(3deg); }
  80%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
.anim-wobble { animation: wobble 300ms ease; }

/* 2. Squish */
@keyframes squish {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(0.9, 1.1) rotate(4deg); }
  40%  { transform: scale(1.1, 0.9) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.anim-squish { animation: squish 250ms ease; }

/* 3. Pop */
@keyframes pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.anim-pop { animation: pop 220ms ease; }

/* 4. Shake */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.anim-shake { animation: shake 250ms ease; }

/* 5. Flip */
@keyframes flip {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(25deg); }
  100% { transform: rotateY(0deg); }
}
.anim-flip { animation: flip 350ms ease; }

/* 6. Tilt */
@keyframes tilt {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(5deg); }
  50%  { transform: rotate(-5deg); }
  75%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}
.anim-tilt { animation: tilt 300ms ease; }







.label-block {
  display: block;
  margin-bottom: 0.25rem; /* space before input */
  font-weight: 500;
}

.label-inline {
  display: inline-block;
  width: 120px;   /* align all labels */
  text-align: right;
  margin-right: 1rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}



.float-label {
  position: relative;
}

.float-label input {
  padding-top: 1.2rem;
}

.float-label label {
  position: absolute;
  left: 0.5rem;
  top: 0.8rem;
  transition: 0.2s;
  pointer-events: none;
}

.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label {
  top: -0.4rem;
  font-size: 0.75rem;
  color: #555;
}

.label-required::after {
  content: " *";
  color: red;
}

.helper-text {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.label { display:block; margin-bottom: .3rem; font-weight:500; }
.label-inline { display:inline-block; margin-right:.5rem; }





pre code.language-javascript {
  display: block;
  padding: 1rem 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;

  background: var(--bg-code, #0f111a);
  color: #cbd3e1;

  overflow-x: auto;
  border-radius: 8px;
  tab-size: 2;
}
/* comments */
.language-javascript {
  --comment: #7f8c98;
  --string:  #ecc48d;
  --keyword: #82aaff;
  --number:  #f78c6c;
}
.language-javascript .comment { color: var(--comment); font-style: italic; }
.language-javascript .string  { color: var(--string); }
.language-javascript .number  { color: var(--number); }
.language-javascript .keyword { color: var(--keyword); font-weight: 500; }
.language-javascript::selection {
  background: #334155;
}
.language-javascript .function {
  color: #c792ea;
}




.mail-wrapper {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  font-family: system-ui, sans-serif;
}

.mail-header h1 {
  margin-bottom: 8px;
}

.subtitle {
  color: #6b7280;
}

.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.mail-footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #6b7280;
}





.input-label {
  display: block;              /* sits above input */
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
/*   color: #222;                 /* adjust for theme */ */
}

.input-description {
  display: block;              /* forces it under the input */
  font-size: 0.8rem;           /* small text */
  line-height: 1.4;
  margin-top: 0.35rem;
  color: #666;                 /* softer than label */
}

