/* MaiAgent UI System tokens（maiagent-design-system v19.1.0）*/
:root {
  
  color-scheme: light;

  

  --c-brand-blue:  #3854D8;
  --c-brand-green: #00DC87;

  --c-blue-50:  #EEF0FC;
  --c-blue-100: #D9DEF7;
  --c-blue-200: #B2BDF0;
  --c-blue-300: #8495E7;
  --c-blue-400: #5970DE;
  --c-blue-500: #3854D8;
  --c-blue-600: #2641C0;
  --c-blue-700: #1F359E;
  --c-blue-800: #182A7B;
  --c-blue-900: #13205E;

  --c-neutral-0:   #FFFFFF;
  --c-neutral-100: #F1F1F1;
  --c-neutral-200: #E4E4E4;
  --c-neutral-300: #D9D9D9;
  --c-neutral-400: #BEBEBE;
  --c-neutral-500: #999999;
  --c-neutral-600: #808080;
  --c-neutral-700: #666666;
  --c-neutral-800: #4D4D4D;
  --c-neutral-900: #1A1A1A;

  
  --c-ink-4:   rgb(0 0 0 / 4%);
  --c-ink-6:   rgb(0 0 0 / 6%);
  --c-ink-35:  rgb(0 0 0 / 35%);
  --c-ink-45:  rgb(0 0 0 / 45%);
  --c-ink-65:  rgb(0 0 0 / 65%);
  --c-ink-100: #000000;

  --c-ink-inverse-8:  rgb(255 255 255 / 8%);
  --c-ink-inverse-12: rgb(255 255 255 / 12%);

  --c-success-100: #E8FCF7;
  --c-success-300: #A3F5DF;
  --c-success-700: #228D6D;

  --c-notice-100: #FEF2E6;
  --c-notice-300: #FDDBB9;
  --c-notice-700: #E37200;

  --c-warning-100: #FEEDEC;
  --c-warning-300: #F7BFBA;
  --c-warning-700: #D93526;

  

  --color-text-primary:     var(--c-neutral-900);
  --color-text-secondary:   var(--c-neutral-800);
  --color-text-tertiary:    var(--c-neutral-600);
  --color-text-placeholder: var(--c-neutral-500);
  --color-text-disabled:    var(--c-neutral-400);
  --color-text-on-accent:   var(--c-neutral-0);
  --color-text-link:        var(--c-brand-blue);

  --color-bg-page:     var(--c-neutral-0);
  
  --color-bg-canvas:   var(--c-neutral-100);
  --color-bg-subtle:   var(--c-neutral-100);
  --color-bg-hover:    var(--c-neutral-200);
  --color-bg-selected: var(--c-blue-50);
  
  --color-bg-selected-hover: var(--c-blue-100);

  --color-border-faint:  var(--c-neutral-200);
  --color-border-subtle: var(--c-neutral-300);
  
  --color-border-overlay: transparent;

  
  --color-fill-control:  var(--c-neutral-400);
  --color-scrollbar:       var(--c-neutral-300);
  --color-scrollbar-hover: var(--c-neutral-500);

  
  --color-grip:        var(--c-neutral-300);
  --color-grip-active: var(--c-neutral-500);

  
  
  --color-chart-1: var(--c-brand-blue);
  --color-chart-2: #0BBB81;
  --color-chart-3: #824ACA;
  --color-chart-4: #04C1D0;
  --color-chart-5: #078661;
  --color-chart-6: #95419A;
  --color-chart-7: #359BD9;
  --color-chart-8: var(--c-neutral-600);
  --color-scrollbar-press: var(--c-neutral-700);

  --color-action-primary:    var(--c-brand-blue);
  --color-action-hover:      var(--c-blue-600);
  --color-action-press:     var(--c-blue-700);
  --color-action-subtle:     var(--c-blue-50);
  
  --color-action-focus-ring: var(--c-blue-100);

  --color-brand-blue:  var(--c-brand-blue);
  --color-brand-green: var(--c-brand-green);

  --color-success-text:   var(--c-success-700);
  --color-success-bg:     var(--c-success-100);
  --color-success-border: var(--c-success-300);
  --color-success-solid:  var(--c-success-700);

  --color-notice-text:   var(--c-notice-700);
  --color-notice-bg:     var(--c-notice-100);
  --color-notice-border: var(--c-notice-300);
  --color-notice-solid:  var(--c-notice-700);

  --color-warning-text:   var(--c-warning-700);
  --color-warning-bg:     var(--c-warning-100);
  --color-warning-border: var(--c-warning-300);
  --color-warning-solid:  var(--c-warning-700);

  --color-info-text:   var(--c-blue-700);
  --color-info-bg:     var(--c-blue-50);
  --color-info-border: var(--c-blue-200);
  --color-info-solid:  var(--c-brand-blue);

  
  --color-scrim: var(--c-ink-45);

  
  --color-shadow-edge: color-mix(in srgb, var(--c-neutral-900) 14%, transparent);
}



[data-brand] {
  --color-action-primary:    var(--brand, var(--c-brand-blue));
  --color-action-hover:      color-mix(in srgb, var(--brand, var(--c-brand-blue)) 88%, var(--c-neutral-900));
  --color-action-press:      color-mix(in srgb, var(--brand, var(--c-brand-blue)) 76%, var(--c-neutral-900));
  --color-action-subtle:     color-mix(in srgb, var(--brand, var(--c-brand-blue)) 10%, var(--c-neutral-0));
  --color-action-focus-ring: color-mix(in srgb, var(--brand, var(--c-brand-blue)) 30%, var(--c-neutral-0));
  --color-text-on-accent:    var(--brand-on, var(--c-neutral-0));
}
[data-theme='dark'] {
  color-scheme: dark;

  --color-text-primary:     var(--c-neutral-100);
  --color-text-secondary:   var(--c-neutral-400);
  --color-text-tertiary:    var(--c-neutral-500);
  --color-text-placeholder: var(--c-neutral-600);
  --color-text-disabled:    var(--c-neutral-700);
  --color-text-link:        var(--c-blue-300);

  --color-bg-page:     var(--c-neutral-900);
  
  --color-bg-canvas:   var(--c-neutral-900);
  --color-bg-subtle:   color-mix(in srgb, var(--c-neutral-900), var(--c-neutral-0) 6%);
  --color-bg-hover:    color-mix(in srgb, var(--c-neutral-900), var(--c-neutral-0) 12%);
  --color-bg-selected: color-mix(in srgb, var(--c-neutral-900), var(--c-brand-blue) 20%);

  --color-border-faint:  var(--c-ink-inverse-8);
  --color-border-subtle: var(--c-neutral-800);
  
  --color-border-overlay: var(--c-ink-inverse-8);
  --color-fill-control:  var(--c-neutral-700);
  --color-scrollbar:       var(--c-neutral-700);
  --color-scrollbar-hover: var(--c-neutral-500);

  
  --color-grip:        var(--c-neutral-700);
  --color-grip-active: var(--c-neutral-500);

  
  --color-chart-1: #5B7DEB;
  --color-chart-2: #06B079;
  --color-chart-3: #8B5DCE;
  --color-chart-4: #05A5B3;
  --color-chart-5: #067F5C;
  --color-chart-6: #994B9E;
  --color-chart-7: #2D95D3;
  --color-scrollbar-press: var(--c-neutral-300);

  
  --color-action-primary:    var(--c-brand-blue);
  --color-action-hover:      var(--c-blue-400);
  --color-action-press:     var(--c-blue-300);
  --color-action-subtle:     color-mix(in srgb, var(--c-neutral-900), var(--c-brand-blue) 24%);
  --color-action-focus-ring: var(--c-blue-500);

  --color-success-text:   var(--c-success-300);
  --color-success-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-success-700) 24%);
  --color-success-border: var(--c-success-700);

  --color-notice-text:   var(--c-notice-300);
  --color-notice-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-notice-700) 24%);
  --color-notice-border: var(--c-notice-700);

  --color-warning-text:   var(--c-warning-300);
  --color-warning-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-warning-700) 24%);
  --color-warning-border: var(--c-warning-700);

  --color-info-text:   var(--c-blue-300);
  --color-info-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-brand-blue) 24%);
  --color-info-border: var(--c-blue-700);
  


  --color-scrim: var(--c-ink-65);

  
  --color-shadow-edge: color-mix(in srgb, var(--c-neutral-0) 14%, transparent);
}
:root {
  
  --space-1:  4px;
  --space-2:  8px;
  --space-4:  16px;
  --space-8:  32px;
  --space-16: 64px;

  
  --space-xs:  var(--space-1);
  --space-sm:  var(--space-2);
  --space-lg:  var(--space-4);
  --space-xl:  var(--space-8);
  --space-2xl: var(--space-16);

  
  
  --space-surface-block: 24px;
}
:root {
  
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-4: 16px;
  --radius-8: 32px;

  
  --radius-sm:   var(--radius-1);
  --radius-md:   var(--radius-2);
  --radius-lg:   var(--radius-4);
  --radius-xl:   var(--radius-8);  
  --radius-full: 9999px;           

  
  
  --radius-surface: 24px;
}
:root {
  
  
  --shadow-sm: 0 0 8px rgba(0, 0, 0, 0.08), 0 2px 2px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.10);
  
  --shadow-lg: 0 0 0 1px var(--color-border-overlay), 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 16px rgba(0, 0, 0, 0.15);

  
  
  --shadow-halo: 0 0 20px rgba(0, 0, 0, 0.05);
  
  --shadow-focus-ring: 0 0 4px 2px var(--color-action-focus-ring);
  
  --shadow-focus-ring-inset: inset 0 0 4px 2px var(--color-action-focus-ring);
  --shadow-focus-ring-error: 0 0 4px 2px var(--color-warning-border);

  --duration-fast: 0.12s;
  --duration-md:   0.2s;
  --duration-slow: 0.32s;

  --ease-linear:   linear;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth:   cubic-bezier(0.16, 1, 0.3, 1);
}


[data-theme='dark'] {
  --shadow-lg: 0 0 0 1px var(--color-border-overlay), 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 16px rgba(0, 0, 0, 0.15);
  --shadow-focus-ring: 0 0 4px 2px var(--color-action-focus-ring);
  --shadow-focus-ring-inset: inset 0 0 4px 2px var(--color-action-focus-ring);
  --shadow-focus-ring-error: 0 0 4px 2px var(--color-warning-border);
}
:root {
  
  --breakpoint-sm: 768px;   
  --breakpoint-md: 1024px;  
  --breakpoint-lg: 1280px;  

  
  --size-header-height:         48px;
  --size-footer-height:         76px;
  --size-tab-bar-height:        32px;
  --size-nav-item-height:       40px;
  
  --size-overlay-bar-height:    48px;
  
  --size-table-head-height:     40px;
  
  --size-sider-width:           280px;
  
  --size-sider-min-width: 208px;
  --size-sider-collapsed-width: 60px;
  --size-sider-mobile-width:    280px;
  --size-panel-width:           260px;
  --size-logo:                  32px;
  --size-content-max-width:     768px;
  
  --size-chat-max-width:        1024px;
  --size-control-height-sm:     24px;   
  --size-control-height-md:     36px;
  --size-control-height-lg:     44px;
  --size-control-min-width:     200px;

  
  
  --size-scrollbar:              12px;
  --size-scrollbar-thumb:        4px;
  --size-scrollbar-thumb-active: 8px;

  
  --z-base:     0;
  --z-raised:   10;
  --z-sticky:   100;
  --z-chrome:   200;
  --z-dropdown: 300;
  --z-scrim:    400;
  --z-modal:    500;
  --z-toast:    600;
  --z-tooltip:  700;
  --z-blocking: 800;
}
:root {
  
  --font-noto:       "Noto Sans TC";
  --font-native-cjk: "PingFang TC", "Microsoft JhengHei";
  --font-sans: "Inter", var(--font-noto), -apple-system, BlinkMacSystemFont, "Segoe UI", var(--font-native-cjk), sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  
  --text-display: 36px;
  --text-h1:      28px;
  --text-h2:      22px;
  --text-h3:      18px;
  --text-h4:      16px;
  --text-body:    14px;
  --text-caption: 12px;

  
  --leading-display: 48px; 
  --leading-h1:      38px; 
  --leading-h2:      30px; 
  --leading-h3:      28px; 
  --leading-h4:      24px; 
  --leading-body:    22px; 
  --leading-caption: 18px; 

  
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;

  
  --tracking-table-header: 0.03em;
  --tracking-brand-title:  -0.01em;
}

/* MaiAgent EIP */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--color-bg-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
a { color: var(--color-text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

.eip-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px;
  background: var(--color-bg-page);
  border-bottom: 1px solid var(--color-border-faint);
}
.eip-top__logo { width: 34px; height: 18px; display: block; }
.eip-top__name { font-weight: var(--weight-bold); font-size: var(--text-h4); letter-spacing: var(--tracking-brand-title); }
.eip-top__badge {
  font-size: var(--text-caption); line-height: var(--leading-caption);
  padding: 1px 8px; border-radius: var(--radius-full);
  background: var(--color-notice-bg); color: var(--color-notice-text);
}
.eip-top__nav { display: flex; gap: 4px; margin-left: 16px; }
.eip-top__nav a {
  color: var(--color-text-secondary); padding: 6px 10px; border-radius: var(--radius-md);
}
.eip-top__nav a:hover { background: var(--color-bg-hover); text-decoration: none; }
.eip-top__me { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--color-text-tertiary); }

.eip-main { max-width: 1280px; margin: 0 auto; padding: 24px; display: grid; gap: 20px; }

.eip-hero {
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-surface);
  padding: 28px 28px 20px;
}
.eip-hero__hi { margin: 0 0 4px; font-size: var(--text-h1); line-height: var(--leading-h1); font-weight: var(--weight-bold); }
.eip-hero__sub { margin: 0 0 18px; color: var(--color-text-tertiary); }
.eip-ask { display: flex; gap: 8px; }
.eip-ask__input {
  flex: 1; min-width: 0;
  font: inherit; font-size: var(--text-h4);
  padding: 12px 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-page); color: var(--color-text-primary);
}
.eip-ask__input:focus-visible { outline: none; box-shadow: var(--shadow-focus-ring); border-color: var(--color-action-primary); }
.eip-ask__go {
  border: 0; border-radius: var(--radius-lg); padding: 0 20px;
  background: var(--color-action-primary); color: var(--color-text-on-accent);
  font-weight: var(--weight-medium); cursor: pointer;
}
.eip-ask__go:hover { background: var(--color-action-hover); }
.eip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.eip-chip {
  border: 1px solid var(--color-border-faint); background: var(--color-bg-subtle);
  color: var(--color-text-secondary); border-radius: var(--radius-full);
  padding: 4px 12px; cursor: pointer; font-size: var(--text-caption); line-height: var(--leading-caption);
}
.eip-chip:hover { background: var(--color-bg-hover); }
.eip-answer {
  margin-top: 16px; padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--color-info-bg); color: var(--color-text-primary);
  display: none;
}
.eip-answer.is-open { display: block; }
.eip-answer__q { color: var(--color-text-tertiary); font-size: var(--text-caption); margin-bottom: 4px; }
.eip-answer__body p { margin: 0 0 6px; }
.eip-answer__body ul { margin: 4px 0 6px; padding-left: 20px; }
.eip-answer__src { margin-top: 8px; color: var(--color-text-tertiary); font-size: var(--text-caption); }

.eip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eip-grid--3-2 { grid-template-columns: 3fr 2fr; }
.eip-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eip-leave { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--color-border-faint); }
.eip-leave:last-child { border-bottom: 0; }
.eip-leave .eip-avatar { width: 28px; height: 28px; font-size: 11px; }
.eip-leave__name { font-weight: var(--weight-medium); }
.eip-leave__when { margin-left: auto; color: var(--color-text-tertiary); font-size: var(--text-caption); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eip-empty { color: var(--color-text-tertiary); margin: 0; }
.eip-hols { list-style: none; margin: 0; padding: 0; }
.eip-hols li { display: grid; grid-template-columns: 88px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--color-border-faint); }
.eip-hols li:last-child { border-bottom: 0; }
.eip-hols b { font-variant-numeric: tabular-nums; }
.eip-hols small { color: var(--color-text-tertiary); font-size: var(--text-caption); white-space: nowrap; }
.eip-info { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px 8px; margin: 0; align-items: center; }
.eip-info dt { color: var(--color-text-tertiary); }
.eip-info dd { margin: 0; overflow-wrap: anywhere; }
.eip-copy { border: 1px solid var(--color-border-subtle); background: var(--color-bg-page); color: var(--color-text-secondary); border-radius: var(--radius-md); padding: 2px 8px; font-size: var(--text-caption); cursor: pointer; white-space: nowrap; }
.eip-copy:hover { background: var(--color-bg-hover); }
.eip-guide { margin: 0; }
.eip-guide dt { font-weight: var(--weight-medium); margin-top: 10px; }
.eip-guide dt:first-child { margin-top: 0; }
.eip-guide dd { margin: 2px 0 0; color: var(--color-text-secondary); font-size: var(--text-caption); line-height: var(--leading-caption); }
.eip-routine { list-style: none; margin: 0; padding: 0; }
.eip-routine li { padding: 8px 0; border-bottom: 1px solid var(--color-border-faint); }
.eip-routine li:last-child { border-bottom: 0; }
.eip-routine b { display: inline-block; min-width: 118px; color: var(--color-info-text); font-variant-numeric: tabular-nums; }
.eip-routine small { display: block; color: var(--color-text-tertiary); font-size: var(--text-caption); line-height: var(--leading-caption); }
.eip-docs { display: grid; gap: 6px; }

.eip-card {
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-xl);
  padding: 20px;
  min-width: 0;
}
.eip-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 14px; }
.eip-card__title { margin: 0; font-size: var(--text-h3); line-height: var(--leading-h3); font-weight: var(--weight-bold); white-space: nowrap; }
.eip-card__meta { color: var(--color-text-tertiary); font-size: var(--text-caption); }
.eip-card__act { margin-left: auto; font-size: var(--text-caption); white-space: nowrap; }

/* rooms */
.eip-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; align-items: start; }
.eip-room__now { margin-top: 6px; font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eip-room {
  border: 1px solid var(--color-border-faint); border-radius: var(--radius-lg);
  padding: 12px 14px; cursor: pointer;
}
.eip-room.is-selected { border-color: var(--color-action-primary); box-shadow: 0 0 0 1px var(--color-action-primary); }
.eip-room__row { display: flex; align-items: center; gap: 8px; }
.eip-room__name { font-weight: var(--weight-bold); white-space: nowrap; }
.eip-room__cap { color: var(--color-text-tertiary); font-size: var(--text-caption); line-height: var(--leading-caption); margin-top: 2px; }
.eip-room__prio { font-size: var(--text-caption); color: var(--color-text-tertiary); }
.eip-status {
  margin-left: auto; font-size: var(--text-caption); line-height: var(--leading-caption);
  padding: 2px 10px; border-radius: var(--radius-full); font-weight: var(--weight-medium); white-space: nowrap;
}
.eip-status--free { background: var(--color-success-bg); color: var(--color-success-text); }
.eip-status--busy { background: var(--color-warning-bg); color: var(--color-warning-text); }
.eip-timeline { position: relative; height: 14px; margin: 10px 0 4px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); }
.eip-timeline__blk { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-sm); background: var(--color-chart-1); opacity: .75; }
.eip-timeline__now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--color-warning-solid); }
.eip-timeline__axis { display: flex; justify-content: space-between; color: var(--color-text-tertiary); font-size: 11px; }
.eip-room__list { margin: 8px 0 0; padding: 0; list-style: none; font-size: var(--text-caption); line-height: var(--leading-caption); color: var(--color-text-secondary); display: none; }
.eip-room.is-selected .eip-room__list { display: block; }
.eip-room__list li { padding: 2px 0; }
.eip-room__list time { color: var(--color-text-tertiary); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* floor plan */
.eip-plan svg { width: 100%; height: auto; display: block; }
.fp-wall { fill: var(--color-bg-subtle); stroke: var(--color-text-tertiary); stroke-width: 4; }
.fp-fac { fill: var(--color-bg-hover); stroke: var(--color-border-subtle); stroke-width: 2; }
.fp-desk { fill: var(--color-bg-page); stroke: var(--color-border-subtle); stroke-width: 1.5; }
.fp-txt { fill: var(--color-text-secondary); font-size: 19px; }
.fp-out { fill: none; stroke: var(--color-border-subtle); stroke-width: 2; stroke-dasharray: 8 6; }
.fp-door { fill: var(--color-notice-bg); stroke: var(--color-notice-solid); stroke-width: 2.5; }
.fp-exit { fill: var(--color-success-bg); stroke: var(--color-success-solid); stroke-width: 2.5; }
.fp-room { cursor: pointer; stroke-width: 3; fill: var(--color-bg-subtle); stroke: var(--color-border-subtle); }
.fp-room--free { fill: var(--color-success-bg); stroke: var(--color-success-solid); }
.fp-room--busy { fill: var(--color-warning-bg); stroke: var(--color-warning-solid); }
.fp-room.is-selected { stroke: var(--color-action-primary); stroke-width: 6; }
.fp-rname { font-size: 24px; font-weight: 700; fill: var(--color-text-primary); pointer-events: none; }
.fp-rsub { font-size: 17px; fill: var(--color-text-secondary); pointer-events: none; }
.eip-legend { display: flex; gap: 14px; margin-top: 10px; color: var(--color-text-tertiary); font-size: var(--text-caption); }
.eip-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* calendar */
.eip-day { margin: 0 0 6px; font-size: var(--text-caption); color: var(--color-text-tertiary); font-weight: var(--weight-medium); }
.eip-events { list-style: none; margin: 0 0 14px; padding: 0; }
.eip-event { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--color-border-faint); }
.eip-event:last-child { border-bottom: 0; }
.eip-event time { color: var(--color-text-tertiary); font-variant-numeric: tabular-nums; }
.eip-event__room {
  display: inline-block; margin-left: 6px; font-size: 11px; line-height: 16px;
  padding: 0 6px; border-radius: var(--radius-full); background: var(--color-action-subtle); color: var(--color-info-text);
}
.eip-event.is-past { opacity: .5; }

/* links & joiners */
.eip-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eip-link {
  display: block; padding: 10px 12px; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-faint); color: var(--color-text-primary);
}
.eip-link:hover { background: var(--color-bg-hover); text-decoration: none; }
.eip-link small { display: block; color: var(--color-text-tertiary); font-size: var(--text-caption); line-height: var(--leading-caption); }
.eip-joiners { display: grid; gap: 8px; margin-top: 4px; }

/* people */
.eip-avatar {
  width: 32px; height: 32px; flex: none; border-radius: var(--radius-full);
  display: grid; place-items: center;
  color: var(--color-text-on-accent); font-size: 12px; font-weight: var(--weight-bold);
}
.eip-person { display: flex; align-items: center; gap: 10px; cursor: pointer; border-radius: var(--radius-lg); padding: 6px 8px; }
.eip-person:hover { background: var(--color-bg-hover); }
.eip-person__name { font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eip-person__title { color: var(--color-text-tertiary); font-size: var(--text-caption); line-height: var(--leading-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eip-person__txt { min-width: 0; }

/* org chart */
.eip-org__root { display: flex; justify-content: center; margin-bottom: 8px; }
.eip-org__root .eip-person { border: 1px solid var(--color-border-subtle); background: var(--color-bg-page); padding: 8px 14px; }
.eip-org__lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; position: relative; padding-top: 16px; border-top: 2px solid var(--color-border-faint); }
.eip-lane { border-radius: var(--radius-lg); background: var(--color-bg-subtle); padding: 10px; }
.eip-lane__head { display: flex; align-items: center; gap: 6px; font-weight: var(--weight-bold); margin: 0 0 6px 4px; }
.eip-lane__dot { width: 10px; height: 10px; border-radius: 3px; }
.eip-lane__n { margin-left: auto; color: var(--color-text-tertiary); font-weight: var(--weight-regular); font-size: var(--text-caption); }
.eip-tree { list-style: none; margin: 0; padding: 0; }
.eip-tree .eip-tree { margin-left: 18px; padding-left: 8px; border-left: 2px solid var(--color-border-faint); }

/* directory */
.eip-dir__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.eip-dir__search {
  flex: 1 1 240px; font: inherit; padding: 8px 12px;
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg);
  background: var(--color-bg-page); color: var(--color-text-primary);
}
.eip-chip.is-selected { background: var(--color-bg-selected); color: var(--color-info-text); border-color: var(--color-info-border); }
.eip-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }

/* drawer */
.eip-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%);
  background: var(--color-bg-page); box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform var(--duration-md) var(--ease-standard);
  z-index: 30; padding: 24px; overflow-y: auto;
}
.eip-drawer.is-open { transform: none; }
.eip-drawer__close { position: absolute; top: 14px; right: 14px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--color-text-tertiary); }
.eip-drawer__hd { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.eip-drawer__hd .eip-avatar { width: 56px; height: 56px; font-size: 18px; }
.eip-drawer h3 { margin: 0; font-size: var(--text-h3); }
.eip-kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 10px; margin: 0 0 16px; }
.eip-kv dt { color: var(--color-text-tertiary); }
.eip-kv dd { margin: 0; }
.eip-drawer__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.eip-btn {
  display: inline-block; padding: 7px 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle); color: var(--color-text-primary); background: var(--color-bg-page);
}
.eip-btn:hover { background: var(--color-bg-hover); text-decoration: none; }
.eip-btn--primary { background: var(--color-action-primary); border-color: var(--color-action-primary); color: var(--color-text-on-accent); }
.eip-btn--primary:hover { background: var(--color-action-hover); }
.eip-scrim { position: fixed; inset: 0; background: var(--color-scrim); z-index: 25; display: none; }
.eip-scrim.is-open { display: block; }

.eip-foot { color: var(--color-text-tertiary); font-size: var(--text-caption); line-height: var(--leading-caption); text-align: center; padding: 8px 0 24px; }

@media (max-width: 959px) {
  .eip-grid, .eip-grid--3-2 { grid-template-columns: 1fr; }
  .eip-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eip-grid--3 { grid-template-columns: 1fr; }
  .eip-top__nav { display: none; }
}
@media (max-width: 599px) {
  .eip-main { padding: 16px; }
  .eip-top { padding: 10px 16px; }
  .eip-hero { padding: 20px 16px 16px; }
  .eip-hero__hi { font-size: var(--text-h2); line-height: var(--leading-h2); }
  .eip-links { grid-template-columns: 1fr; }
  .eip-rooms { grid-template-columns: 1fr; }
  .eip-plan { overflow-x: auto; }
  .eip-plan svg { min-width: 760px; }
  .eip-card { padding: 16px; }
  .eip-top__me span { display: none; }
}

/* announcements & releases */
.eip-news { list-style: none; margin: 0; padding: 0; }
.eip-news li { padding: 10px 0; border-bottom: 1px solid var(--color-border-faint); }
.eip-news li:last-child { border-bottom: 0; }
.eip-news__top { display: flex; align-items: baseline; gap: 8px; }
.eip-news__title { font-weight: var(--weight-medium); color: var(--color-text-primary); }
.eip-news__meta { margin-left: auto; color: var(--color-text-tertiary); font-size: var(--text-caption); white-space: nowrap; }
.eip-news__pin { font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: var(--radius-full); background: var(--color-warning-bg); color: var(--color-warning-text); white-space: nowrap; }
.eip-news__cat { font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: var(--radius-full); background: var(--color-action-subtle); color: var(--color-info-text); white-space: nowrap; }
.eip-news__ex { margin-top: 2px; color: var(--color-text-secondary); font-size: var(--text-caption); line-height: var(--leading-caption); }
.eip-rel__ver { font-weight: var(--weight-bold); margin: 0 0 6px; }
.eip-rel__sec { margin: 10px 0 4px; font-size: var(--text-caption); color: var(--color-text-tertiary); font-weight: var(--weight-medium); }
.eip-rel ul { margin: 0; padding-left: 18px; }
.eip-rel li { margin: 3px 0; }
.eip-rel li span { color: var(--color-text-tertiary); font-size: var(--text-caption); }
.eip-notice { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-lg); background: var(--color-warning-bg); color: var(--color-warning-text); font-size: var(--text-caption); line-height: var(--leading-caption); }
/* seats on floor plan */
.fp-seat-id { font-size: 13px; fill: var(--color-text-tertiary); pointer-events: none; }
.fp-desk.is-taken { fill: var(--color-bg-selected); stroke: var(--color-action-primary); cursor: pointer; }
.fp-seat-name { font-size: 15px; font-weight: 700; fill: var(--color-info-text); pointer-events: none; }
/* login */
.eip-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.eip-login__box { background: var(--color-bg-page); border: 1px solid var(--color-border-faint); border-radius: var(--radius-surface); padding: 40px 32px; text-align: center; max-width: 380px; width: 100%; }
.eip-login__box h1 { margin: 16px 0 6px; font-size: var(--text-h2); line-height: var(--leading-h2); }
.eip-login__box p { margin: 0 0 22px; color: var(--color-text-tertiary); }
.eip-login__err { margin-top: 14px; color: var(--color-warning-text); font-size: var(--text-caption); }
.eip-login__btn { display: flex; justify-content: center; min-height: 44px; }
.eip-top__out { border: 1px solid var(--color-border-subtle); background: var(--color-bg-page); color: var(--color-text-secondary); border-radius: var(--radius-md); padding: 2px 10px; font-size: var(--text-caption); cursor: pointer; }
.eip-top__out:hover { background: var(--color-bg-hover); }
.eip-thinking { color: var(--color-text-tertiary); }

/* toolbar buttons */
.eip-tool { border: 1px solid var(--color-border-subtle); background: var(--color-bg-page); color: var(--color-text-secondary); border-radius: var(--radius-md); padding: 2px 10px; font-size: var(--text-caption); line-height: var(--leading-caption); cursor: pointer; white-space: nowrap; }
.eip-tool:hover { background: var(--color-bg-hover); }
.eip-tool--icon { padding: 2px 8px; }
.eip-login__tools { margin-top: 18px; }
.eip-legend__free { background: var(--color-success-bg); border: 1px solid var(--color-success-solid); }
.eip-legend__busy { background: var(--color-warning-bg); border: 1px solid var(--color-warning-solid); }
