
    :root {font-family:Inter,Segoe UI,Arial,sans-serif;color:#26313d;background:#f6f7f9}
    * {box-sizing:border-box}
    body {margin:0}
    button,input,select,textarea {font:inherit}
    button {cursor:pointer}
    .hd-new-ticket-form {display:grid;gap:13px;min-width:min(580px,80vw)}
    .hd-new-ticket-form > label {display:grid;gap:6px}
    .hd-new-ticket-form input,.hd-new-ticket-form select,.hd-new-ticket-form textarea {width:100%}
    .topbar {height:62px;background:#714b67;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:16px}
    .brand {font-size:19px;font-weight:750;white-space:nowrap}
    .brand small {font-size:12px;font-weight:400;opacity:.85;margin-left:10px}
    .topright {display:flex;align-items:center;gap:12px}
    .topright select {max-width:230px;background:#fff;color:#26313d;border:0;border-radius:7px;padding:8px}
    .nav {background:#fff;border-bottom:1px solid #e2e5ea;display:flex;align-items:center;gap:8px;padding:9px 24px;min-height:50px}
    .nav button {border:0;background:transparent;color:#55616f;padding:9px 13px;border-radius:7px}
    .nav button:hover,.nav button.active {background:#f2eaf0;color:#714b67}
    main {max-width:1280px;margin:30px auto;padding:0 25px 70px}
    h1 {font-size:27px;margin:0 0 6px} h2 {font-size:19px;margin:0 0 16px} h3 {font-size:15px;margin:0 0 12px}
    .muted {color:#7b8591;font-size:13px}.subtitle {margin-bottom:27px}
    .row {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
    .btn {border:1px solid #dce0e6;background:white;border-radius:7px;padding:9px 14px;color:#374353}
    .btn.primary {background:#714b67;color:white;border-color:#714b67}
    .btn.danger {color:#a53043}
    .btn:disabled {opacity:.45;cursor:not-allowed}
    .appgrid {display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:18px}
    .appcard {border:1px solid #e5e7ec;border-radius:12px;background:#fff;padding:25px 12px;text-align:center;min-height:150px;box-shadow:0 2px 7px #20242b06;transition:transform .15s,box-shadow .15s}
    .appcard:hover {transform:translateY(-3px);box-shadow:0 8px 22px #20242b14}
    .appicon {width:52px;height:52px;border-radius:13px;background:#f1e8ef;color:#714b67;display:flex;align-items:center;justify-content:center;font-size:25px;margin:0 auto 15px}
    .appname {font-size:15px;font-weight:650}
    .panel {background:#fff;border:1px solid #e4e7eb;border-radius:11px;padding:22px;margin-top:18px}
    .stats {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px}
    .stat {background:white;border:1px solid #e4e7eb;border-radius:10px;padding:20px}
    .stat b {display:block;font-size:30px;margin-top:12px}
    table {width:100%;border-collapse:collapse;text-align:left}
    th,td {padding:13px 10px;border-bottom:1px solid #edf0f2;font-size:14px}
    th {color:#7b8591;font-weight:600}
    .tag {display:inline-block;border-radius:20px;background:#f0e7ee;color:#714b67;font-size:12px;padding:5px 9px}
    .tag.gray {background:#eef0f3;color:#66717c}
    .columns {display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:13px;overflow-x:auto}
    .column {background:#edf0f3;border-radius:9px;padding:12px;min-height:230px}
    .ticket {background:white;border:1px solid #e0e3e7;border-radius:8px;padding:14px;margin:10px 0;cursor:pointer}
    main:has(.od-shell){max-width:1600px;margin:14px auto;padding:0 18px 50px}.ticket-fullpage:has(.od-shell){padding:0;border:0;background:transparent}.od-shell{background:#fff;border:1px solid #dedfe3;box-shadow:0 2px 15px #2020200a;border-radius:5px;overflow:hidden}.od-toolbar{padding:13px 22px;border-bottom:1px solid #e6e7eb;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.od-breadcrumb{font-size:14px;color:#80848b}.od-breadcrumb button{border:0;background:none;color:#714b67;cursor:pointer;font-weight:600}.od-tools{display:flex;align-items:center;gap:8px}.od-record{font-size:12px;color:#8d929a;margin-left:12px}.od-body{display:grid;grid-template-columns:minmax(440px,1.1fr) minmax(400px,.9fr);min-height:790px}.od-main{min-width:0;padding:20px 30px 36px}.od-smartbar{display:flex;justify-content:flex-end;gap:0;margin-bottom:26px}.od-smartbar button{background:#fff;border:1px solid #ddd;padding:7px 15px;min-width:80px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;cursor:pointer}.od-smartbar button+button{border-left:0}.od-smartbar strong{color:#714b67;font-size:16px}.od-formtop{margin-bottom:27px}.od-overline{font-size:11px;font-weight:700;color:#89828a;letter-spacing:.08em}.od-overline span{font-weight:400}.od-form h1{font-size:30px;line-height:1.25;margin:9px 0 19px;font-weight:600}.od-stage{display:flex;flex-wrap:wrap;margin-top:12px}.od-stage button{position:relative;border:1px solid #d9d9de;background:#f8f8fa;padding:9px 12px;color:#747982;font-size:12px;cursor:pointer}.od-stage button.selected{background:#714b67;color:white;border-color:#714b67}.od-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 25px;margin-bottom:25px}.od-fields label{font-size:12px;color:#5f626a}.od-fields input,.od-fields select{border:0!important;border-bottom:1px solid #dedee3!important;border-radius:0!important;padding:9px 2px!important;margin-top:2px!important;font-size:14px!important}.od-contact{border-top:1px solid #ededf0;border-bottom:1px solid #ededf0;padding:15px 0;margin:12px 0 25px}.od-contacthead{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:14px}.od-contacthead button{background:none;border:0;color:#714b67;cursor:pointer;font-size:12px}.od-contact #ticketContactPreview{display:flex;flex-direction:column;gap:6px;font-size:13px}.od-contact #ticketContactPreview span{color:#777}.od-sectionhead{font-size:17px;font-weight:600;margin-bottom:12px}.od-editorbar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:9px 12px;border:1px solid #dddfe4;border-bottom:0;background:#fafafb;font-size:12px}.od-description textarea{margin:0!important;border-radius:0!important;min-height:280px;resize:vertical;line-height:1.65;font-size:14px}.od-chatter{background:#f8f9fb;border-left:1px solid #e1e3e8;min-width:0;padding:0}.od-chatterhead{display:flex;justify-content:space-between;padding:20px 23px 14px;font-size:15px}.od-chatterhead span{font-size:12px;color:#888}.od-tabs{display:flex;gap:4px;padding:0 20px 15px;border-bottom:1px solid #e5e7ea;flex-wrap:wrap}.od-tabs button{background:transparent;border:0;border-radius:5px;padding:9px 12px;color:#666;cursor:pointer;font-size:12px}.od-tabs button.selected{background:#714b67;color:white}.od-composer{margin:20px;background:white;border:1px solid #e2e4e8;border-radius:7px;padding:13px}.od-composer select{font-size:12px;width:auto;max-width:100%;border:0!important;color:#714b67;padding:3px!important}.od-composer textarea{border:0!important;resize:vertical;margin-top:10px!important;font-size:14px}.od-composeactions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.od-composeactions span{font-size:11px;color:#999}.od-timeline{padding:10px 23px 30px}.od-timeline-title{font-size:12px;color:#8b8f97;text-align:center;border-bottom:1px solid #dfe2e7;padding-bottom:12px;margin-bottom:20px}.od-message{display:grid;grid-template-columns:34px 1fr;gap:12px;margin-bottom:24px}.od-avatar{width:33px;height:33px;border-radius:50%;background:#e9dbe6;color:#714b67;display:flex;align-items:center;justify-content:center;font-weight:700}.od-msgmeta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}.od-msgmeta span{color:#9398a0}.od-kind{background:#eee9ef;padding:2px 6px;border-radius:3px}.od-msgtext{white-space:pre-wrap;margin-top:8px;font-size:13px;line-height:1.6}@media(max-width:950px){.od-body{grid-template-columns:1fr}.od-chatter{border-left:0;border-top:1px solid #e1e3e8}.od-main{padding:20px}.od-fields{grid-template-columns:1fr 1fr}}@media(max-width:550px){.od-fields{grid-template-columns:1fr}.od-smartbar{justify-content:flex-start;overflow:auto}.od-form h1{font-size:24px}}
    .customer-link{background:none;border:0;padding:0;color:#714b67;font:inherit;font-weight:650;cursor:pointer;text-align:left}.customer-link:hover{text-decoration:underline}.ticket-left .panel{margin-bottom:16px}.ticket-chatter{background:#fafafb;border-radius:10px;padding:22px!important;border:1px solid #e4e6ea!important;align-self:start}.ticket-fullpage{background:#fff}.ticket-page-grid{grid-template-columns:minmax(320px,1fr) minmax(350px,1fr)}
    .ticket{position:relative}.ticket-expand{float:right;border:1px solid #d9dce2;border-radius:5px;background:white;padding:2px 8px;font-size:17px;cursor:pointer}.ticket-toolbar{display:flex;gap:8px;flex-wrap:wrap}.ticket-heading{align-items:start}.ticket-fullpage{background:white;border:1px solid #e3e6eb;border-radius:12px;padding:26px;min-height:65vh}.ticket-page-grid{display:grid;grid-template-columns:minmax(250px,0.85fr) minmax(350px,1.15fr);gap:32px}.ticket-chatter{border-left:1px solid #e4e6ea;padding-left:26px}.ticket-fullpage .history{max-height:55vh}@media(max-width:850px){.ticket-page-grid{grid-template-columns:1fr}.ticket-chatter{border-left:0;border-top:1px solid #e4e6ea;padding:20px 0 0}}
    .dialog-close{position:absolute;right:12px;top:10px;background:transparent;border:0;font-size:28px;line-height:1;cursor:pointer;color:#667085;z-index:2}.dialog-close:hover{color:#222}dialog{position:relative;padding-top:38px!important}
    .historyentry{border-left:3px solid #714b67;padding:10px 13px;margin:9px 0;background:#f8f7f9;border-radius:4px}.historytext{white-space:pre-wrap;margin-top:7px;font-size:14px}.history{max-height:260px;overflow:auto}dialog{max-height:90vh;overflow:auto}textarea{width:100%;box-sizing:border-box}
    .ticket small {display:block;color:#7b8591;margin-top:8px}
    .formgrid {display:grid;grid-template-columns:1fr 1fr;gap:14px}
    label {display:block;font-size:13px;font-weight:550;color:#53606e}
    input:not([type=checkbox]),select,textarea {width:100%;border:1px solid #d8dde4;border-radius:7px;padding:10px;margin-top:6px;background:#fff;color:#26313d}
    .checkgrid {display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin-top:10px}
    .checkitem {display:flex;align-items:center;gap:9px;border:1px solid #e2e5e9;padding:11px;border-radius:8px;font-weight:500;color:#334151}
    .checkitem input {width:16px;height:16px;accent-color:#714b67}
    .formsection {margin-top:22px}
    .actions {display:flex;justify-content:flex-end;gap:9px;margin-top:22px}
    dialog {border:1px solid #e2e5e9;border-radius:12px;width:min(650px,94vw);padding:25px;max-height:90vh;overflow:auto;box-shadow:0 20px 60px #0002}
    dialog::backdrop {background:#1d233088}
    .notice {background:#fff9e9;border:1px solid #eedca8;color:#745c25;padding:12px 14px;border-radius:8px;font-size:13px;margin-bottom:22px}
    .empty {padding:35px;text-align:center;color:#7b8591}
    @media(max-width:700px){.topbar{padding:0 12px}.brand small{display:none}.formgrid{grid-template-columns:1fr}.columns{grid-template-columns:repeat(4,220px)}main{padding:0 14px}.topright label{display:none}}
      /* V8: Fluid layout for 27- and 34-inch displays */
    main,main:has(.od-shell){width:100%;max-width:none;margin:16px auto;padding:0 clamp(14px,1.8vw,42px) 60px}
    .od-shell{width:100%;max-width:none}
    .od-body{grid-template-columns:minmax(0, 54fr) minmax(0, 46fr);min-height:calc(100vh - 180px)}
    .od-main{padding:clamp(20px,2vw,44px)}
    .od-chatterhead{padding-left:clamp(20px,1.7vw,36px)}
    .od-timeline{padding-left:clamp(20px,1.7vw,36px);padding-right:clamp(20px,1.7vw,36px)}
    .od-title-input{display:block;width:100%;border:0!important;border-bottom:1px solid transparent!important;background:transparent!important;border-radius:0!important;font-size:clamp(25px,1.6vw,36px)!important;font-weight:600!important;line-height:1.3!important;padding:7px 0!important;margin:7px 0 17px!important;color:#29313a!important}
    .od-title-input:hover,.od-title-input:focus{border-bottom-color:#714b67!important;outline:0}
    .od-delete{margin-left:auto;border:1px solid #e4c8cc;background:#fff;color:#a43d4b;border-radius:5px;padding:3px 7px;font-size:11px;cursor:pointer}
    .od-delete:hover{background:#fff1f3}
    @media(max-width:1050px){.od-body{grid-template-columns:1fr}.od-chatter{border-left:0;border-top:1px solid #e1e3e8}}
    @media(min-width:2200px){.od-body{grid-template-columns:minmax(0, 55fr) minmax(0, 45fr)}.od-description textarea{min-height:400px}.od-timeline{font-size:15px}}
    /* V9: Full-viewport ticket workspace, independent panel scrolling */
    body:has(.od-shell){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
    body:has(.od-shell) header,body:has(.od-shell) nav{flex-shrink:0}
    body:has(.od-shell) main{flex:1;min-height:0;overflow:hidden;margin:0;padding:clamp(8px,0.7vw,14px) clamp(12px,1.4vw,30px)}
    body:has(.od-shell) .od-shell{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
    body:has(.od-shell) .od-topbar{flex-shrink:0}
    body:has(.od-shell) .od-body{flex:1;min-height:0;height:auto;overflow:hidden}
    body:has(.od-shell) .od-main{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
    body:has(.od-shell) .od-chatter{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;display:flex;flex-direction:column}
    body:has(.od-shell) .od-timeline{min-height:0;overflow-y:auto;flex:1;max-height:none}
    body:has(.od-shell) .od-chatterhead{flex-shrink:0}
    body:has(.od-shell) .od-composer{flex-shrink:0}
    @media(max-width:1050px){body:has(.od-shell) .od-body{display:flex;flex-direction:column}body:has(.od-shell) .od-main,body:has(.od-shell) .od-chatter{flex:1;min-height:0}}
    /* V10: reliable viewport boundaries and reachable ticket actions */
    body:has(.od-shell){height:100dvh;min-height:0;overflow:hidden}
    body:has(.od-shell) main{
      box-sizing:border-box;flex:1 1 0;min-height:0;
      padding:10px clamp(12px,1.4vw,30px) max(18px,env(safe-area-inset-bottom,0px));
      overflow:hidden;
    }
    body:has(.od-shell) .od-shell{
      box-sizing:border-box;display:flex;flex-direction:column;
      height:100%;min-height:0;overflow:hidden;
    }
    body:has(.od-shell) .od-toolbar{
      flex:0 0 auto;min-height:58px;box-sizing:border-box;
      position:relative;z-index:2;background:#fff;
    }
    body:has(.od-shell) .od-body{
      display:grid;flex:1 1 0;min-height:0;height:0;
      overflow:hidden;align-items:stretch;
    }
    body:has(.od-shell) .od-main{
      min-height:0;min-width:0;height:100%;
      overflow-y:auto;overflow-x:hidden;
      overscroll-behavior:contain;scrollbar-gutter:stable;
      padding-bottom:clamp(26px,3vh,48px);
    }
    body:has(.od-shell) .od-chatter{
      min-height:0;height:100%;overflow:hidden;
      display:flex;flex-direction:column;
    }
    body:has(.od-shell) .od-timeline{
      flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;
      overscroll-behavior:contain;
      padding-bottom:28px;
    }
    body:has(.od-shell) .od-tabs,
    body:has(.od-shell) .od-chatterhead,
    body:has(.od-shell) .od-composer{flex-shrink:0}
    body:has(.od-shell) .od-description textarea{
      box-sizing:border-box;display:block;width:100%;
      min-height:280px;max-height:none;resize:vertical;
      overflow-y:auto;
    }
    @media(max-width:1050px){
      body:has(.od-shell) .od-body{display:flex;flex-direction:column}
      body:has(.od-shell) .od-main,
      body:has(.od-shell) .od-chatter{flex:1 1 0;height:auto;min-height:0}
    }
    @media(max-height:650px){
      body:has(.od-shell) .od-toolbar{padding:8px 16px;min-height:48px}
      body:has(.od-shell) .od-composer{margin:9px}
      body:has(.od-shell) .od-composer textarea{min-height:50px}
    }

    /* V11: complete height chain from application root to the two ticket panes */
    body:has(.od-shell) { height:100dvh; overflow:hidden; display:flex; flex-direction:column; }
    body:has(.od-shell) > .topbar, body:has(.od-shell) > .nav { flex:0 0 auto; }
    body:has(.od-shell) > main#app {
      flex:1 1 auto; min-height:0; height:auto; width:100%; max-width:none;
      margin:0; padding:12px clamp(12px,1.5vw,32px) 20px;
      overflow:hidden; display:flex; flex-direction:column;
    }
    body:has(.od-shell) #app > .ticket-fullpage {
      flex:1 1 auto; min-height:0; height:100%; width:100%;
      padding:0; margin:0; overflow:hidden; display:flex; flex-direction:column;
    }
    body:has(.od-shell) .ticket-fullpage > .od-shell {
      flex:1 1 auto; min-height:0; height:100%; width:100%;
      overflow:hidden; display:flex; flex-direction:column;
    }
    body:has(.od-shell) .od-shell > .od-toolbar {
      flex:0 0 auto; min-height:0; position:relative; z-index:2;
    }
    body:has(.od-shell) .od-shell > .od-body {
      flex:1 1 auto; min-height:0; height:auto; width:100%;
      display:grid; grid-template-columns:minmax(0,55fr) minmax(0,45fr);
      overflow:hidden; align-items:stretch;
    }
    body:has(.od-shell) .od-body > .od-main {
      min-height:0; height:100%; overflow-y:auto; overflow-x:hidden;
      overscroll-behavior:contain; scrollbar-gutter:stable;
      padding-bottom:45px;
    }
    body:has(.od-shell) .od-body > .od-chatter {
      min-height:0; height:100%; overflow:hidden;
      display:flex; flex-direction:column;
    }
    body:has(.od-shell) .od-chatter > .od-timeline {
      min-height:0; flex:1 1 auto; overflow-y:auto;
      overscroll-behavior:contain;
    }
    body:has(.od-shell) .od-chatter > .od-composer,
    body:has(.od-shell) .od-chatter > .od-tabs,
    body:has(.od-shell) .od-chatter > .od-chatterhead { flex:0 0 auto; }
    @media(max-width:1050px) {
      body:has(.od-shell) .od-shell > .od-body {display:flex;flex-direction:column}
      body:has(.od-shell) .od-body > .od-main,
      body:has(.od-shell) .od-body > .od-chatter {height:auto;flex:1 1 0;min-height:0}
    }

    /* V12: center ticket smart buttons within the breadcrumb/action toolbar */
    .od-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);gap:clamp(8px,1vw,18px);align-items:center}
    .od-breadcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .od-toolbar-smartbar{justify-content:center;margin:0;min-width:0;white-space:nowrap}
    .od-toolbar-smartbar button{min-width:70px;padding:5px clamp(6px,.7vw,12px);font-size:11px}
    .od-toolbar-smartbar strong{font-size:14px}
    .od-tools{justify-content:flex-end;white-space:nowrap}
    @media(max-width:1150px){
      .od-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:10px}
      .od-toolbar-smartbar{grid-column:1/-1;grid-row:2;justify-content:center}
      .od-tools{grid-column:2;grid-row:1}
    }
    @media(max-width:650px){
      .od-toolbar{grid-template-columns:1fr}
      .od-breadcrumb,.od-tools,.od-toolbar-smartbar{grid-column:1;grid-row:auto}
      .od-tools{justify-content:flex-start;flex-wrap:wrap}
      .od-toolbar-smartbar{justify-content:flex-start;overflow-x:auto;max-width:100%}
    }
      /* V13: centrally aligned ticket smart buttons and timeline order toggle */
    .od-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}
    .od-toolbar-smartbar{grid-column:2;grid-row:1;justify-self:center;}
    .od-breadcrumb{grid-column:1;grid-row:1;}
    .od-tools{grid-column:3;grid-row:1;}
    .od-timeline-title{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:12px;min-height:32px}
    .od-history-toggle{border:1px solid #d9d5dc;border-radius:5px;background:#fff;color:#714b67;padding:5px 10px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
    .od-history-toggle:hover{background:#f4eef3}
    @media(max-width:1150px){
      .od-toolbar{grid-template-columns:minmax(0,1fr) auto}
      .od-breadcrumb{grid-column:1;grid-row:1}
      .od-tools{grid-column:2;grid-row:1}
      .od-toolbar-smartbar{grid-column:1/-1;grid-row:2;justify-self:center}
    }
    @media(max-width:650px){
      .od-toolbar{grid-template-columns:1fr}
      .od-breadcrumb,.od-toolbar-smartbar,.od-tools{grid-column:1;grid-row:auto}
      .od-toolbar-smartbar{justify-self:center}
    }
    /* V16: Smart buttons with captions, ticket stages in upper-right toolbar */
    .od-toolbar{
      display:grid!important;
      grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
      grid-template-rows:auto auto;
      align-items:center;
      gap:9px 14px;
      padding:12px clamp(14px,1.3vw,28px);
    }
    .od-breadcrumb{grid-column:1;grid-row:1;min-width:0}
    .od-toolbar-smartbar{
      grid-column:2;grid-row:1;justify-self:center;
      display:flex;align-items:stretch;margin:0;
      white-space:nowrap;overflow:visible;
    }
    .od-toolbar-smartbar button{
      display:flex;flex-direction:column;align-items:center;justify-content:center;
      gap:3px;min-width:85px;padding:6px 13px;
      font-size:12px;line-height:1.2;
    }
    .od-toolbar-smartbar strong{font-size:18px;line-height:1.1}
    .od-toolbar-smartbar span{display:block;font-size:12px}
    .od-toolbar-stages{
      grid-column:3;grid-row:1;justify-self:end;
      display:flex;align-items:center;gap:10px;min-width:0;
    }
    .od-stage-label{font-size:11px;color:#85838a;white-space:nowrap}
    .od-toolbar-stages .od-stage{margin:0;display:flex;flex-wrap:nowrap}
    .od-toolbar-stages .od-stage button{white-space:nowrap;padding:8px 10px;font-size:11px}
    .od-tools{
      grid-column:1/-1;grid-row:2;justify-self:end;
      justify-content:flex-end;display:flex;align-items:center;
      border-top:1px solid #efedf0;padding-top:8px;width:100%;
    }
    .od-formtop{margin-bottom:20px}
    @media(max-width:1450px){
      .od-toolbar{grid-template-columns:minmax(0,1fr) auto!important}
      .od-breadcrumb{grid-column:1;grid-row:1}
      .od-toolbar-stages{grid-column:2;grid-row:1}
      .od-toolbar-smartbar{grid-column:1/-1;grid-row:2;justify-self:center}
      .od-tools{grid-column:1/-1;grid-row:3}
    }
    @media(max-width:760px){
      .od-toolbar{grid-template-columns:minmax(0,1fr)!important}
      .od-breadcrumb{grid-column:1;grid-row:1}
      .od-toolbar-stages{grid-column:1;grid-row:2;justify-self:start;max-width:100%;overflow-x:auto}
      .od-toolbar-smartbar{grid-column:1;grid-row:3;justify-self:start;max-width:100%;overflow-x:auto}
      .od-tools{grid-column:1;grid-row:4;justify-self:stretch;flex-wrap:wrap}
    }
    /* V17: taller communication editor, with viewport-aware limits */
    body:has(.od-shell) .od-composer textarea#messageText {
      display:block;
      box-sizing:border-box;
      width:100%;
      min-height:150px;
      height:clamp(150px, 19vh, 230px);
      max-height:38vh;
      resize:vertical;
      overflow-y:auto;
      line-height:1.55;
    }
    @media(max-height:750px) {
      body:has(.od-shell) .od-composer textarea#messageText {
        min-height:105px;
        height:clamp(105px, 17vh, 155px);
        max-height:28vh;
      }
    }

    /* V18: Ticket phases belong inside the left ticket form, top right */
    .od-toolbar{grid-template-columns:minmax(0,1fr) auto!important}
    .od-breadcrumb{grid-column:1;grid-row:1}
    .od-toolbar-smartbar{grid-column:2;grid-row:1;justify-self:end}
    .od-tools{grid-column:1/-1;grid-row:2}
    .od-formtop-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
    .od-formtop-heading .od-overline{padding-top:9px}
    .od-formtop-heading .od-toolbar-stages{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center;margin-left:auto;min-width:0}
    .od-formtop-heading .od-toolbar-stages .od-stage{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0}
    .od-formtop-heading .od-toolbar-stages .od-stage button{padding:8px 10px}
    @media(max-width:1450px){
      .od-toolbar{grid-template-columns:minmax(0,1fr) auto!important}
      .od-toolbar-smartbar{grid-column:2;grid-row:1}
      .od-tools{grid-column:1/-1;grid-row:2}
    }
    @media(max-width:760px){
      .od-toolbar{grid-template-columns:minmax(0,1fr)!important}
      .od-toolbar-smartbar{grid-column:1;grid-row:2;justify-self:start}
      .od-tools{grid-column:1;grid-row:3}
      .od-formtop-heading .od-toolbar-stages{margin-left:0;justify-content:flex-start}
      .od-formtop-heading .od-toolbar-stages .od-stage{justify-content:flex-start}
    }

    /* V19: single-line toolbar, centered Odoo-style smart buttons */
    .od-shell > .od-toolbar {
      display:grid!important;
      grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
      grid-template-rows:auto!important;
      align-items:center!important;
      column-gap:clamp(10px,1.2vw,26px)!important;
      row-gap:0!important;
      min-height:76px!important;
      padding:9px clamp(12px,1.3vw,28px)!important;
    }
    .od-shell > .od-toolbar > .od-breadcrumb {
      grid-column:1!important;grid-row:1!important;
      justify-self:start!important;min-width:0;overflow:hidden;
      white-space:nowrap;text-overflow:ellipsis;
    }
    .od-shell > .od-toolbar > .od-toolbar-smartbar {
      grid-column:2!important;grid-row:1!important;
      justify-self:center!important;margin:0!important;
      display:flex;align-items:stretch;gap:0;
      overflow:visible;white-space:nowrap;
    }
    .od-shell > .od-toolbar > .od-toolbar-smartbar button {
      min-width:78px;padding:6px 12px!important;
      display:flex;flex-direction:column;justify-content:center;align-items:center;
      gap:4px;font-size:12px;
    }
    .od-shell > .od-toolbar > .od-toolbar-smartbar strong {font-size:17px;line-height:1.1}
    .od-shell > .od-toolbar > .od-toolbar-smartbar span {display:block;font-size:12px;line-height:1.2}
    .od-shell > .od-toolbar > .od-tools {
      grid-column:3!important;grid-row:1!important;
      justify-self:end!important;justify-content:flex-end!important;
      width:auto!important;padding:0!important;margin:0!important;
      border-top:0!important;display:flex;flex-wrap:nowrap;white-space:nowrap;
    }
    @media(max-width:1280px){
      .od-shell > .od-toolbar {grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;row-gap:8px!important}
      .od-shell > .od-toolbar > .od-breadcrumb {grid-column:1!important;grid-row:1!important}
      .od-shell > .od-toolbar > .od-tools {grid-column:2!important;grid-row:1!important}
      .od-shell > .od-toolbar > .od-toolbar-smartbar {grid-column:1/-1!important;grid-row:2!important;justify-self:center!important}
    }
    @media(max-width:650px){
      .od-shell > .od-toolbar {grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important}
      .od-shell > .od-toolbar > .od-breadcrumb {grid-column:1!important;grid-row:1!important}
      .od-shell > .od-toolbar > .od-toolbar-smartbar {grid-column:1!important;grid-row:2!important;max-width:100%;overflow-x:auto;justify-self:start!important}
      .od-shell > .od-toolbar > .od-tools {grid-column:1!important;grid-row:3!important;justify-self:start!important;flex-wrap:wrap}
    }

    /* V20: editable form state, distinct communication modes, compact contact and resizable panes */
    .od-shell > .od-toolbar .od-dirty-indicator{font-size:11px;color:#a46717;margin-left:4px}
    .od-shell > .od-toolbar .od-dirty-indicator[hidden]{display:none!important}
    .od-body{grid-template-columns:minmax(0,calc(var(--ticket-left,55%) - 5px)) 10px minmax(0,calc(var(--ticket-right,45%) - 5px))!important;gap:0}
    .od-splitter{background:#ebe7ec;border-left:1px solid #ded8df;border-right:1px solid #ded8df;cursor:col-resize;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;position:relative;z-index:3}
    .od-splitter:hover,.od-splitter.dragging,.od-splitter:focus-visible{background:#d8c6d4;outline:0}
    .od-split-grip{font-size:25px;line-height:1;color:#8a7283;letter-spacing:-4px}
    .od-contact{margin:9px 0 18px;padding:11px 0}
    .od-contacthead{margin-bottom:7px}
    .od-contact-meta{display:flex;flex-wrap:wrap;gap:5px 17px;align-items:center;margin-top:5px;font-size:12px;color:#777}
    .od-contact-meta a{color:#714b67;text-decoration:none}.od-contact-meta a:hover{text-decoration:underline}
    .od-composer{transition:background .15s,border-color .15s}
    .od-composer.od-internal-note{background:#fff9e7;border-color:#e9d9a6}
    .od-composer.od-internal-note textarea{background:#fffdf6!important}
    .od-composer.od-customer-reply{background:#fff;border-color:#c9d8e7}
    .od-compose-label{font-size:12px;font-weight:650;color:#6e5a20;margin:0 0 6px}
    .od-customer-reply .od-compose-label{color:#466782}
    .od-message:has(.od-kind){min-width:0}
    .od-message:has(.od-kind):has(.od-kind){overflow-wrap:anywhere}
    .od-msgmeta .od-kind{background:#eae6ec}
    .od-msgmeta .od-kind[data-kind="note"]{background:#fff0be;color:#6d531b}
    .od-msgmeta .od-kind[data-kind="reply"]{background:#e5f0fc;color:#335c83}
    @media(max-width:1050px){
      .od-body{display:flex!important;flex-direction:column!important}
      .od-splitter{display:none}
    }
    .od-saved-indicator{color:#237a4c;font-size:12px;font-weight:600;white-space:nowrap}
    .od-saved-indicator[hidden]{display:none!important}
    /* Small breathing room between communication input and save action */
    .od-composer .od-composeactions { margin-top: 10px; }
    /* Helpdesk configuration: preserves existing V24 ticket layout */
    .hd-setup{max-width:1450px;margin:0 auto;padding-bottom:40px}
    .hd-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-top:25px;border-bottom:1px solid #dfe3e9;padding-bottom:9px}
    .hd-tab{border:0;background:transparent;border-radius:7px;padding:12px 17px;color:#65717e;font-weight:600}
    .hd-tab.active{background:#f0e7ef;color:#714b67}
    .hd-settings{min-height:300px;padding:28px}
    .hd-list{margin-top:20px;display:flex;flex-direction:column;gap:8px}
    .hd-listrow{display:flex;align-items:center;gap:10px;border:1px solid #e4e6eb;border-radius:8px;padding:13px 15px;background:#fff}
    .hd-listrow>div:first-child:not(.hd-stagecolor){flex:1}
    .hd-listrow .muted{margin-top:5px}
    .hd-stagecolor{height:13px;width:13px;border-radius:50%;flex-shrink:0}
    .hd-preview{margin-top:22px;background:#f8f4f7;border:1px solid #e8dbe5;border-radius:9px;padding:19px;display:flex;flex-direction:column;gap:9px}
    .hd-preview span{color:#7a6b76;font-size:12px}.hd-preview strong{font-size:24px;color:#714b67}
    @media(max-width:750px){.hd-settings{padding:15px}.hd-listrow{flex-wrap:wrap}}

    /* V26: globally accessible Odoo-inspired command search */
    .topbar{position:relative}
    .global-search-trigger{position:absolute;left:50%;transform:translateX(-50%);width:clamp(260px,34vw,540px);height:36px;border:1px solid #ffffff55;border-radius:7px;background:#ffffff20;color:#fff;display:flex;align-items:center;gap:10px;padding:0 12px;text-align:left}
    .global-search-trigger:hover,.global-search-trigger:focus-visible{background:#ffffff33;outline:2px solid #ffffff66;outline-offset:1px}
    .global-search-trigger .search-placeholder{flex:1;opacity:.92;font-size:13px}
    .global-search-trigger kbd{font:11px Inter,Segoe UI,sans-serif;background:#ffffff28;border:1px solid #ffffff55;border-radius:4px;padding:3px 6px;white-space:nowrap}
    #globalSearchDialog{padding:0!important;width:min(690px,calc(100vw - 28px));max-height:min(76dvh,750px);border-radius:12px;overflow:hidden;box-shadow:0 25px 80px #10132155}
    #globalSearchDialog::backdrop{background:#10132188;backdrop-filter:blur(3px)}
    .global-search-head{display:flex;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid #e6e6e9}
    #globalSearchInput{border:0!important;outline:0!important;box-shadow:none!important;font-size:17px;width:100%;min-width:0;background:transparent}
    .global-search-close{border:0;background:#f2f2f5;color:#586171;border-radius:5px;padding:5px 8px;font-size:12px}
    #globalSearchResults{overflow-y:auto;max-height:min(59dvh,570px);padding:8px}
    .global-search-section{padding:11px 13px 6px;color:#7c7780;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
    .global-search-result{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:0;border-radius:7px;background:transparent;padding:11px 13px;color:#26313d}
    .global-search-result:hover,.global-search-result.selected{background:#f2eaf0}
    .global-search-result-icon{width:34px;height:34px;border-radius:7px;background:#f0e7ee;color:#714b67;display:grid;place-items:center;flex-shrink:0;font-size:17px}
    .global-search-result-main{flex:1;min-width:0}
    .global-search-result-title{font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .global-search-result-sub{font-size:12px;color:#818792;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .global-search-result-arrow{color:#9ba0aa}
    .global-search-empty{padding:30px 15px;text-align:center;color:#818792}
    .global-search-footer{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid #e8e9ed;padding:10px 18px;font-size:11px;color:#808591;background:#fafafb}
    .global-search-footer kbd{border:1px solid #dfe1e5;border-radius:3px;background:white;padding:2px 5px}
    @media(max-width:1000px){.global-search-trigger{position:static;transform:none;width:min(42vw,420px)}.brand small{display:none}}
    @media(max-width:670px){.topbar{padding:0 10px;gap:8px}.brand{font-size:14px}.global-search-trigger{width:auto;flex:1;min-width:35px;justify-content:center;padding:0 8px}.global-search-trigger .search-placeholder,.global-search-trigger kbd,.topright>span{display:none}.topright select{max-width:125px;font-size:11px}}

/* V27: Helpdesk team landing */
.hd-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px;margin-top:20px;max-width:1150px}
.hd-team-card{display:block;text-align:left;border:1px solid #e2e4e8;border-radius:12px;background:#fff;padding:23px;cursor:pointer;box-shadow:0 2px 8px #00000009;transition:box-shadow .15s,border-color .15s}
.hd-team-card:hover,.hd-team-card:focus-visible{border-color:#714b67;box-shadow:0 5px 18px #714b6720;outline:none}
.hd-team-card h2{margin:0 0 7px;font-size:20px}.hd-team-card .hd-team-sub{color:#64748b;font-size:13px;margin-bottom:21px}
.hd-team-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border-top:1px solid #edf0f2;padding-top:17px}
.hd-team-metrics b{display:block;font-size:25px;color:#312b35}.hd-team-metrics span{font-size:12px;color:#667085}
.hd-team-icon{display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:11px;background:#f2e9f0;color:#714b67;font-size:22px;margin-bottom:16px}
.hd-team-breadcrumb{font-size:13px;color:#667085;margin-bottom:8px}
.hd-team-breadcrumb button{border:0;background:none;color:#714b67;cursor:pointer;padding:0;font:inherit}
@media(max-width:700px){.hd-team-grid{grid-template-columns:1fr}}

    /* Helpdesk: priority highlighting, including red/white critical warning frame */
    .ticket.hd-priority-high{background:#fff8e8;border:2px solid #e6a52b;box-shadow:0 2px 8px #b97a1720;padding:13px}
    .ticket.hd-priority-high .hd-priority-badge{background:#ffedbd;color:#825100}
    .ticket.hd-priority-critical{border:5px solid transparent;border-radius:9px;
      background:linear-gradient(#fff7f7,#fff7f7) padding-box,
      repeating-linear-gradient(135deg,#d82432 0 11px,#fff 11px 22px) border-box;
      box-shadow:0 2px 13px #bd1f3033;padding:10px}
    .ticket.hd-priority-critical .hd-priority-badge{background:#c81d2d;color:#fff}
    .hd-priority-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;
      border-radius:5px;font-size:11px;font-weight:750;letter-spacing:.01em;margin-top:8px}
    .ticket.hd-priority-critical strong{color:#8c1520}
    .ticket.hd-priority-high:hover,.ticket.hd-priority-critical:hover{filter:brightness(.985)}

    /* V29: Helpdesk board, list, drag/drop and in-column quick create */
    .hd-view-switch{display:inline-flex;border:1px solid #dfe1e6;border-radius:8px;overflow:hidden;background:#fff}
    .hd-view-switch button{border:0;background:white;color:#5f6470;padding:10px 14px;cursor:pointer;font-weight:600}
    .hd-view-switch button.active{background:#714b67;color:#fff}
    .hd-board{overflow-x:auto;align-items:stretch;padding-bottom:16px}
    .hd-board .column{min-width:235px;transition:background .15s,border-color .15s;border:2px solid transparent;border-radius:10px}
    .hd-board .column.hd-drop-over{background:#f5eaf2;border-color:#714b67}
    .hd-board .ticket[draggable="true"]{cursor:grab;user-select:none}
    .hd-board .ticket.hd-dragging{opacity:.35}
    .hd-stage-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
    .hd-stage-head h3{margin:0;min-width:0}
    .hd-quick-add{border:0;background:#f0e7ef;color:#714b67;font-size:20px;line-height:1;border-radius:6px;padding:5px 9px;cursor:pointer}
    .hd-quick-form{background:#fff;border:1px solid #ded6df;border-radius:8px;padding:10px;margin:9px 0;box-shadow:0 2px 9px #0000000b}
    .hd-quick-form input,.hd-quick-form select{width:100%;margin:5px 0 8px;padding:9px;border:1px solid #ddd;border-radius:5px}
    .hd-quick-actions{display:flex;gap:7px;justify-content:flex-end}
    .hd-list-table{width:100%;border-collapse:collapse;background:white;border:1px solid #e4e6eb;border-radius:9px;overflow:hidden}
    .hd-list-table th,.hd-list-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #edf0f2;font-size:13px}
    .hd-list-table th{background:#f6f4f6;color:#62616a;font-size:12px}
    .hd-list-table tbody tr{cursor:pointer}.hd-list-table tbody tr:hover{background:#f8f3f7}
    .hd-list-table tr.hd-priority-high td:first-child{box-shadow:inset 5px 0 #e6a52b}
    .hd-list-table tr.hd-priority-critical td:first-child{box-shadow:inset 5px 0 #d82432}
    .hd-list-table .hd-priority-badge{margin-top:0}
    @media(max-width:850px){.hd-list-scroll{overflow-x:auto}.hd-list-table{min-width:750px}}
  .hd-sla-badge{display:inline-flex;align-items:center;border:1px solid var(--sla-color);color:var(--sla-color);background:color-mix(in srgb,var(--sla-color) 9%,white);border-radius:5px;padding:3px 7px;font-size:11px;font-weight:750;white-space:nowrap;width:max-content}
  .hd-sla-none{font-size:11px;color:#888}
  .hd-age{display:flex;gap:7px;flex-wrap:wrap;font-size:11px;color:#737985;margin-top:8px;border-top:1px solid #e8e8ec;padding-top:7px}
  .hd-age span{display:inline-flex;flex-direction:column;gap:2px;min-width:65px}
  .hd-age b{color:#323944;font-size:11px}
  .hd-ticket-metadata{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:8px 0 14px;padding:9px 12px;background:#faf9fb;border:1px solid #ece9ee;border-radius:8px}
  .hd-ticket-metadata .hd-age{border:0;padding:0;margin:0;gap:18px}
  .hd-list-scroll{overflow:auto}

  /* V32: compact ticket summary in the top-left form header */
  .od-formtop-heading.hd-ticket-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:13px}
  .hd-ticket-summary-heading .hd-ticket-metadata{display:flex;align-items:center;gap:12px;flex:1 1 360px;min-width:0;margin:0;padding:8px 10px;flex-wrap:wrap}
  .hd-ticket-number{display:flex;flex-direction:column;gap:3px;padding-right:10px;border-right:1px solid #e4e1e7;white-space:nowrap}
  .hd-ticket-number span{font-size:10px;color:#737985}
  .hd-ticket-number strong{font-size:12px;color:#714b67}
  .hd-ticket-summary-heading .hd-ticket-metadata .hd-age{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:0;border:0}
   .hd-ticket-summary-heading .hd-ticket-metadata .hd-age span{min-width:58px}
  .hd-ticket-summary-heading .hd-ticket-metadata{gap:0;flex-wrap:nowrap}
  .hd-ticket-summary-heading .hd-ticket-metadata .hd-ticket-number{margin-right:20px;padding-right:20px}
  .hd-ticket-summary-heading .hd-ticket-metadata .hd-age{gap:18px;flex:1 1 auto;min-width:0}
  .hd-ticket-sla-control{margin-left:auto;padding-left:20px;display:flex;flex-direction:column;gap:3px;align-items:flex-end;white-space:nowrap}
  .hd-ticket-sla-control label{font-size:10px;color:#737985}
  .hd-ticket-sla-control select{max-width:150px;min-width:100px;border:1px solid #d8cbd4;border-radius:6px;background:white;color:#714b67;font-size:12px;font-weight:700;padding:5px 7px;cursor:pointer}
  .hd-ticket-sla-control select:disabled{cursor:default;opacity:.75;background:#f3f1f3}
  @media(max-width:1350px){.hd-ticket-summary-heading .hd-ticket-metadata{flex-wrap:wrap;row-gap:9px}.hd-ticket-sla-control{margin-left:auto}}
  .hd-ticket-summary-heading .od-toolbar-stages{margin-left:0;flex:0 1 auto;max-width:100%;justify-content:flex-end}
  .hd-ticket-summary-heading .od-stage{max-width:100%;flex-wrap:wrap!important}
  .hd-ticket-summary-heading .od-stage button{font-size:11px;padding:7px 9px}
  .od-formtop:has(.hd-ticket-summary-heading){margin-bottom:16px}
  @media(max-width:1150px){.hd-ticket-summary-heading .od-toolbar-stages{justify-content:flex-start}}

/* V34: Kanban card information hierarchy */
.hd-board .ticket .hd-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}
.hd-board .ticket .hd-card-number{font-size:15px;font-weight:800;color:#423047;line-height:1.3;letter-spacing:.01em;overflow-wrap:anywhere;min-width:0;flex:0 1 auto}
.hd-board .ticket .hd-card-times{display:flex;flex-wrap:wrap;gap:7px 12px;justify-content:flex-end;text-align:right;align-items:flex-start;margin-left:auto;flex:0 1 auto}
.hd-board .ticket .hd-card-times span{display:flex;flex-direction:column;gap:2px;font-size:10px;color:#7b8190;white-space:nowrap}
.hd-board .ticket .hd-card-times b{font-size:11px;color:#313844;font-weight:700}
.hd-board .ticket .hd-card-labels{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px;flex-wrap:wrap}
.hd-board .ticket .hd-card-priority{display:flex;align-items:center;min-width:0}
.hd-board .ticket .hd-card-priority .hd-priority-badge{margin-top:0}
.hd-board .ticket .hd-card-sla{display:flex;justify-content:flex-end;margin-left:auto}
.hd-board .ticket .hd-card-assignee{margin-top:12px;border-top:1px solid #e8e8ec;padding-top:9px;color:#747b88;font-size:11px}
.hd-board .ticket .hd-card-assignee b{color:#303743;font-weight:650}
@media(max-width:460px){.hd-board .ticket .hd-card-head{flex-wrap:wrap}.hd-board .ticket .hd-card-times{width:100%;justify-content:flex-start;text-align:left}}

    /* V35: compact searchable customer and contact panel */
    .hd-contact-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 12px}
    .hd-contact-picker label{font-size:12px;color:#62636c;display:block}
    .hd-contact-picker input{width:100%;margin-top:5px;border:1px solid #dcdde3;border-radius:6px;padding:9px 10px;font-size:13px;background:#fff}
    .hd-contact-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}
    .hd-contact-card{border:1px solid #e5e5eb;border-radius:7px;padding:10px;min-width:0;font-size:12px;display:flex;flex-direction:column;gap:5px}
    .hd-contact-card strong{font-size:13px}.hd-contact-card a{color:#714b67;overflow-wrap:anywhere}
    .hd-contact-card .muted{font-size:11px}.hd-contact-card .hd-contact-action{align-self:flex-start;color:#714b67;background:transparent;border:0;padding:0;cursor:pointer;font-size:11px}
    .hd-hidden-select{display:none!important}
    @media(max-width:650px){.hd-contact-picker,.hd-contact-details{grid-template-columns:1fr}}

/* V36: search fields double as contact summary, no duplicate customer/contact names */
.hd-contact-compact .hd-contact-picker{margin:9px 0 0;align-items:stretch}
.hd-contact-choice{min-width:0;display:flex;flex-direction:column;gap:5px}
.hd-contact-choice>label{font-size:12px;color:#62636c;font-weight:600}
.hd-contact-choice-card{border:1px solid #dedee5;border-radius:8px;background:#fff;padding:10px 11px;min-height:110px;display:flex;flex-direction:column;gap:9px}
.hd-contact-compact .hd-contact-choice-card input{width:100%;margin:0;border:0;border-bottom:1px solid #e8e6ed;border-radius:0;padding:2px 22px 9px 0;font-size:14px;font-weight:650;color:#362b3d;background:transparent;outline-offset:2px}
.hd-contact-info{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#4c4d56;overflow-wrap:anywhere}
.hd-contact-info .hd-contact-type{font-size:11px;color:#77717c}
.hd-contact-info a{color:#714b67}
.hd-contact-choice-card>.muted,.hd-contact-choice-card>div>.muted{font-size:12px;color:#88848c}
@media(max-width:650px){.hd-contact-compact .hd-contact-picker{grid-template-columns:1fr}}


/* Modular launcher */
.launch-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.launch-actions{display:flex;gap:8px;flex-wrap:wrap}
.launch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:15px}
.launch-slot{min-height:132px;border:1px dashed #d4d7de;border-radius:14px;background:#fafbfc;position:relative;display:flex;align-items:stretch}
.launch-slot.occupied{border:1px solid #e1e3e9;background:white;box-shadow:0 2px 10px #1925360a}
.launch-slot.selected{outline:3px solid #714b67;outline-offset:1px}
.launch-tile{width:100%;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;padding:15px 7px;color:#303744}
.launch-tile .appicon{font-size:32px;line-height:1.2}.launch-tile .appname{font-size:13px;font-weight:650;text-align:center}
.launch-empty{width:100%;border:0;background:transparent;color:#a3aab5;font-size:25px}
.launch-edit .launch-empty:hover{background:#f2edf2;color:#714b67}
.launch-grid.launch-list{display:flex;flex-direction:column;gap:7px}
.launch-list .launch-slot{min-height:60px}.launch-list .launch-tile{flex-direction:row;justify-content:flex-start;padding:9px 16px;gap:15px}
.launch-list .launch-tile .appicon{font-size:23px}.launch-list .launch-empty{font-size:18px;text-align:left;padding-left:20px}
.launch-hint{font-size:12px;color:#79818d;margin:10px 0 0}
@media(max-width:600px){.launch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.launch-slot{min-height:112px}.launch-tile{padding:10px 4px}.launch-tile .appicon{font-size:27px}.launch-tile .appname{font-size:11px;overflow-wrap:anywhere}.launch-list .launch-tile .appname{font-size:13px}}

/* Kontakte v0.12 */
.contacts-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0}.contacts-toolbar input{flex:1;min-width:230px;padding:11px;border:1px solid #d8dbe4;border-radius:7px}.contacts-toolbar select{padding:11px;border:1px solid #d8dbe4;border-radius:7px}.contacts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.contacts-card{display:flex;text-align:left;align-items:flex-start;gap:14px;background:var(--panel,#fff);border:1px solid #dfe2e9;border-radius:10px;padding:20px;min-height:154px;cursor:pointer;color:inherit}.contacts-card:hover{border-color:#9384b6;box-shadow:0 3px 12px #0000000d}.contacts-avatar{width:54px;height:54px;flex:none;border-radius:10px;display:grid;place-items:center;background:#e9e3f1;color:#665078;font-weight:700;font-size:19px}.contacts-card-text{display:flex;flex-direction:column;gap:6px;min-width:0}.contacts-card-text strong{font-size:16px}.contacts-card-text span,.contacts-card-text small{overflow-wrap:anywhere;color:#777}.contacts-detail{max-width:1500px}.contacts-profile{display:flex;align-items:center;gap:18px;margin-bottom:24px}.contacts-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:24px 0 18px;padding-top:15px;border-top:1px solid #e2e4eb}.contacts-tabbody{min-height:100px}.contacts-people{display:flex;gap:14px;flex-wrap:wrap}.contacts-table{overflow:auto}@media(max-width:650px){.contacts-grid{grid-template-columns:1fr}.contacts-card{min-height:130px}}

/* Contacts v0.13: Odoo-inspired split form and chatter */
.contact-page{height:calc(100vh - 145px);min-height:550px;display:flex;flex-direction:column;gap:12px}.contact-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.contact-crumb{font-size:14px;color:#666}.contact-back{border:0;background:none;color:#7652a2;cursor:pointer;font:inherit}.contact-smart{display:flex;gap:5px}.contact-smart button{border:1px solid #e3e1e8;background:#fff;border-radius:7px;min-width:80px;padding:7px 12px;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer}.contact-smart button:disabled{opacity:.5;cursor:default}.contact-smart strong{font-size:17px}.contact-smart small{font-size:11px}.contact-workspace{display:grid;grid-template-columns:minmax(420px,1.1fr) minmax(360px,.9fr);gap:12px;flex:1;min-height:0}.contact-form-panel,.contact-chatter{background:var(--panel,#fff);border:1px solid #e2e2e8;border-radius:9px;overflow:auto;padding:22px;min-height:0}.contact-form-panel .contacts-profile h2{margin:4px 0}.contact-chatter{display:flex;flex-direction:column;padding:0}.contact-chatter-header,.contact-chatter-actions,.contact-composer,.contact-timeline{padding:15px 18px}.contact-chatter-header,.contact-timeline-head,.contact-composer-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}.contact-chatter-header{border-bottom:1px solid #e9e9ee}.contact-chatter-actions{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:4px}.contact-composer{border-bottom:1px solid #e9e9ee}.contact-composer textarea{width:100%;min-height:110px;resize:vertical;margin:9px 0;padding:11px;border:1px solid #d8d8e1;border-radius:7px;font:inherit}.contact-timeline{overflow:auto;flex:1;min-height:0}.contact-timeline-head{margin-bottom:14px}.contact-event,.contact-activity{padding:12px 14px;border:1px solid #e5e6ec;border-radius:8px;margin:10px 0;background:#f8f9fc}.contact-event.is-note{background:#fff9e9;border-color:#f1e3b9}.contact-event-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;margin-bottom:8px}.contact-event-meta span,.contact-activity small{color:#747480}.contact-event-body{white-space:normal;overflow-wrap:anywhere}.contact-activity{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f3f6ff}.contact-activity small{flex:1}.contact-form-panel .contacts-tabs{position:relative}@media(max-width:1000px){.contact-page{height:auto}.contact-workspace{display:flex;flex-direction:column}.contact-form-panel,.contact-chatter{overflow:visible}.contact-chatter{min-height:420px}.contact-timeline{max-height:500px}}

/* v0.15: shared Odoo-inspired design foundations across all apps */
:root{--ui-brand:#714b67;--ui-brand-hover:#5b3952;--ui-text:#303038;--ui-muted:#77747c;--ui-border:#dedbe0;--ui-canvas:#f7f7f9;--ui-surface:#fff;--ui-radius:6px;--ui-focus:#946d8b}
button,input,select,textarea{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
.ui-app-header{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:18px}.ui-app-title h1{margin:5px 0}.ui-breadcrumb{font-size:12px;color:var(--ui-muted)}.ui-app-actions{display:flex;gap:8px;align-items:center}.ui-module-toolbar{display:flex;gap:10px;padding:13px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius);margin-bottom:16px}.ui-search-placeholder{font-size:13px;color:var(--ui-muted)}.ui-empty-state{text-align:center;border:1px dashed var(--ui-border);background:var(--ui-surface);border-radius:var(--ui-radius);padding:54px 22px;color:var(--ui-muted)}.ui-empty-state>span{font-size:36px;color:#a49ba4}.ui-empty-state h2{font-size:19px;color:var(--ui-text);margin:8px 0}.ui-view-switch{display:flex;justify-content:flex-end;gap:5px;margin:8px 0 15px}.ui-task-board{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:14px}.ui-task-column{background:#f0eff2;border:1px solid var(--ui-border);border-radius:var(--ui-radius);padding:14px;min-height:260px}.ui-task-column h2{font-size:15px;margin:0 0 14px}.ui-task-column h2 small{font-weight:400;color:var(--ui-muted)}.ui-task-card{background:#fff;border:1px solid var(--ui-border);border-radius:var(--ui-radius);padding:15px;margin-bottom:10px;box-shadow:0 1px 3px #00000008}.ui-task-card p{font-size:12px;color:var(--ui-muted);margin:8px 0}.ui-task-card .actions{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:650px){.ui-task-board{grid-template-columns:1fr}}
