:root{
      --primary:#0B3D91;
      --primary-dark:#072b68;
      --primary-soft:#eaf1ff;
      --cyan:#0891B2;
      --cyan-soft:#ecfeff;
      --ink:#172033;
      --muted:#64748b;
      --line:#dce5ef;
      --surface:#ffffff;
      --background:#f5f8fc;
      --success:#0f9f75;
      --shadow:0 18px 45px rgba(11,61,145,.12);
      --radius:18px;
      --container:1220px;
    }

    *{
      box-sizing:border-box;
    }

    html{
      scroll-behavior:smooth;
    }

    body{
      margin:0;
      color:var(--ink);
      background:var(--background);
      font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,sans-serif;
      line-height:1.65;
    }

    body.drawer-lock{
      overflow:hidden;
    }

    img{
      display:block;
      max-width:100%;
    }

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

    button,
    input,
    textarea,
    select{
      font:inherit;
    }

    .container{
      width:min(var(--container),calc(100% - 40px));
      margin-inline:auto;
    }

    .topbar{
      color:#dbeafe;
      background:#071d43;
      font-size:13px;
    }

    .topbar-inner{
      min-height:38px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
    }

    .topbar-welcome{
      margin:0;
    }

    .topbar-contact{
      display:flex;
      align-items:center;
      gap:20px;
    }

    .topbar-contact a{
      transition:color .2s ease;
    }

    .topbar-contact a:hover{
      color:#67e8f9;
    }

    .header{
      position:relative;
      z-index:50;
      background:rgba(255,255,255,.98);
      border-bottom:1px solid var(--line);
      box-shadow:0 5px 20px rgba(15,23,42,.04);
    }

    .header-inner{
      min-height:80px;
      display:flex;
      align-items:center;
      gap:26px;
    }

    .logo{
      display:inline-flex;
      align-items:center;
      gap:11px;
      min-width:0;
      font-weight:800;
      color:var(--primary);
    }

    .logo img{
      width:42px;
      height:42px;
      border-radius:12px;
      object-fit:contain;
      background:#fff;
    }

    .logo span{
      max-width:190px;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }

    .main-nav{
      margin-left:auto;
      align-self:stretch;
    }

    .nav-list{
      height:100%;
      display:flex;
      align-items:stretch;
      gap:2px;
      padding:0;
      margin:0;
      list-style:none;
    }

    .nav-item{
      position:relative;
      display:flex;
      align-items:center;
    }

    .nav-link{
      height:100%;
      display:flex;
      align-items:center;
      padding:0 12px;
      color:#334155;
      font-size:14px;
      font-weight:700;
      white-space:nowrap;
      transition:color .2s ease,background .2s ease;
    }

    .nav-link:hover,
    .nav-item:focus-within > .nav-link{
      color:var(--primary);
      background:#f8fbff;
    }

    .has-arrow::after{
      content:"";
      width:6px;
      height:6px;
      margin-left:7px;
      border-right:2px solid currentColor;
      border-bottom:2px solid currentColor;
      transform:rotate(45deg) translateY(-2px);
    }

    .dropdown-panel,
    .mega-menu{
      position:absolute;
      top:100%;
      left:0;
      z-index:70;
      visibility:hidden;
      opacity:0;
      transform:translateY(10px);
      pointer-events:none;
      transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
      background:#fff;
      border:1px solid var(--line);
      border-radius:0 0 18px 18px;
      box-shadow:0 24px 55px rgba(15,23,42,.16);
    }

    .dropdown-panel::before,
    .mega-menu::before{
      content:"";
      position:absolute;
      left:0;
      right:0;
      bottom:100%;
      height:8px;
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:focus-within > .mega-menu{
      visibility:visible;
      opacity:1;
      transform:translateY(0);
      pointer-events:auto;
    }

    .dropdown-panel{
      width:330px;
      padding:20px;
    }

    .dropdown-title,
    .mega-title{
      margin:0 0 12px;
      color:var(--primary);
      font-size:13px;
      font-weight:800;
      letter-spacing:.03em;
    }

    .dropdown-list{
      display:grid;
      gap:5px;
    }

    .dropdown-list a{
      padding:9px 10px;
      border-radius:9px;
      color:#334155;
      font-size:14px;
    }

    .dropdown-list a:hover{
      color:var(--primary);
      background:var(--primary-soft);
    }

    .dropdown-all,
    .mega-footer{
      display:block;
      margin-top:14px;
      padding-top:12px;
      color:var(--primary);
      border-top:1px solid var(--line);
      font-size:13px;
      font-weight:800;
    }

    .mega-menu{
      width:650px;
      padding:20px;
    }

    .mega-wide{
      width:760px;
    }

    .nav-item:nth-last-child(-n+3) .mega-menu{
      right:0;
      left:auto;
    }

    .mega-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }

    .mega-card{
      min-width:0;
      display:flex;
      align-items:flex-start;
      gap:11px;
      padding:11px;
      border:1px solid #edf2f7;
      border-radius:12px;
      transition:border-color .2s ease,background .2s ease,transform .2s ease;
    }

    .mega-card:hover{
      border-color:#a5d8e4;
      background:var(--cyan-soft);
      transform:translateY(-2px);
    }

    .mega-card > img{
      flex:0 0 48px;
      width:48px;
      height:48px;
      object-fit:cover;
      border-radius:10px;
      background:#eef4fa;
    }

    .mega-card-body{
      min-width:0;
      display:block;
    }

    .mega-card-body strong,
    .mega-card-body small,
    .mega-card-body p{
      display:block;
    }

    .mega-card-body strong{
      color:#172033;
      font-size:14px;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }

    .mega-card-body small{
      color:var(--muted);
      font-size:11px;
    }

    .mega-card-body p{
      display:-webkit-box;
      margin:3px 0 0;
      overflow:hidden;
      color:var(--muted);
      font-size:12px;
      line-height:1.45;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }

    .mega-category-list{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom:14px;
    }

    .mega-category-list a{
      padding:6px 10px;
      color:#334155;
      background:#f1f5f9;
      border-radius:999px;
      font-size:12px;
      font-weight:700;
    }

    .mega-category-list a:hover{
      color:#fff;
      background:var(--primary);
    }

    .header-btns{
      display:flex;
      align-items:center;
      gap:10px;
      white-space:nowrap;
    }

    .account-link{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:42px;
      padding:9px 16px;
      color:#fff;
      background:var(--primary);
      border-radius:11px;
      font-size:14px;
      font-weight:800;
      box-shadow:0 9px 20px rgba(11,61,145,.2);
    }

    .account-link:hover{
      background:var(--primary-dark);
    }

    .hamburger{
      display:none;
      width:44px;
      height:44px;
      padding:10px;
      border:1px solid var(--line);
      border-radius:11px;
      background:#fff;
      cursor:pointer;
    }

    .hamburger span{
      display:block;
      width:100%;
      height:2px;
      margin:5px 0;
      background:var(--primary);
      transition:transform .2s ease,opacity .2s ease;
    }

    .hamburger.active span:nth-child(1){
      transform:translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2){
      opacity:0;
    }

    .hamburger.active span:nth-child(3){
      transform:translateY(-7px) rotate(-45deg);
    }

    .drawer-overlay{
      position:fixed;
      inset:0;
      z-index:90;
      visibility:hidden;
      opacity:0;
      background:rgba(3,12,28,.58);
      backdrop-filter:blur(3px);
      transition:opacity .25s ease,visibility .25s ease;
    }

    .drawer-overlay.open{
      visibility:visible;
      opacity:1;
    }

    .mobile-drawer{
      position:fixed;
      top:0;
      right:0;
      bottom:0;
      z-index:100;
      width:min(390px,90vw);
      overflow-y:auto;
      background:#fff;
      box-shadow:-20px 0 50px rgba(15,23,42,.22);
      transform:translateX(105%);
      transition:transform .28s ease;
    }

    .mobile-drawer.open{
      transform:translateX(0);
    }

    .drawer-head{
      position:sticky;
      top:0;
      z-index:2;
      display:flex;
      align-items:center;
      gap:10px;
      min-height:72px;
      padding:14px 18px;
      background:#fff;
      border-bottom:1px solid var(--line);
    }

    .drawer-head > a{
      padding:8px 12px;
      color:#fff;
      background:var(--primary);
      border-radius:9px;
      font-size:13px;
      font-weight:700;
    }

    .drawer-close{
      width:40px;
      height:40px;
      margin-left:auto;
      color:#334155;
      background:#f1f5f9;
      border:0;
      border-radius:10px;
      font-size:25px;
      cursor:pointer;
    }

    .drawer-menu{
      padding:12px 18px 28px;
    }

    .drawer-link,
    .drawer-toggle{
      width:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:14px 4px;
      color:#1e293b;
      background:transparent;
      border:0;
      border-bottom:1px solid #e8eef5;
      font-weight:800;
      text-align:left;
      cursor:pointer;
    }

    .drawer-toggle::after{
      content:"+";
      color:var(--primary);
      font-size:20px;
    }

    .drawer-toggle.active::after{
      content:"−";
    }

    .drawer-submenu{
      display:none;
      padding:8px 0 10px 14px;
      border-bottom:1px solid #e8eef5;
    }

    .drawer-submenu.open{
      display:grid;
      gap:3px;
    }

    .drawer-submenu a{
      padding:9px 10px;
      color:var(--muted);
      border-radius:8px;
      font-size:14px;
    }

    .drawer-submenu a:hover{
      color:var(--primary);
      background:var(--primary-soft);
    }

    .tool-detail-page{
      min-width:0;
    }

    .tool-detail-page .tool-heading{
      position:relative;
      overflow:hidden;
      padding:54px 0 48px;
      color:#fff;
      background:
        radial-gradient(circle at 88% 20%,rgba(8,145,178,.42),transparent 30%),
        linear-gradient(135deg,#071d43 0%,#0B3D91 62%,#075f78 100%);
    }

    .tool-detail-page .tool-heading::after{
      content:"";
      position:absolute;
      right:-90px;
      bottom:-150px;
      width:360px;
      height:360px;
      border:1px solid rgba(255,255,255,.16);
      border-radius:50%;
      box-shadow:0 0 0 48px rgba(255,255,255,.04),0 0 0 96px rgba(255,255,255,.03);
    }

    .tool-detail-page .breadcrumb{
      position:relative;
      z-index:1;
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      gap:8px;
      margin-bottom:24px;
      color:#c8dcff;
      font-size:14px;
    }

    .tool-detail-page .breadcrumb a:hover{
      color:#fff;
    }

    .tool-detail-page .tool-title-row{
      position:relative;
      z-index:1;
      display:flex;
      align-items:flex-start;
      gap:22px;
      max-width:900px;
    }

    .tool-detail-page .tool-main-icon{
      flex:0 0 82px;
      width:82px;
      height:82px;
      padding:14px;
      object-fit:contain;
      background:#fff;
      border:1px solid rgba(255,255,255,.4);
      border-radius:22px;
      box-shadow:0 14px 35px rgba(0,0,0,.2);
    }

    .tool-detail-page h1{
      margin:0;
      font-size:clamp(30px,4vw,48px);
      line-height:1.2;
    }

    .tool-detail-page .tool-intro{
      max-width:780px;
      margin:12px 0 0;
      color:#dbeafe;
      font-size:17px;
    }

    .tool-detail-page .tool-meta{
      position:relative;
      z-index:1;
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top:24px;
    }

    .tool-detail-page .tool-meta span{
      padding:7px 12px;
      color:#e0f2fe;
      background:rgba(255,255,255,.1);
      border:1px solid rgba(255,255,255,.16);
      border-radius:999px;
      font-size:13px;
    }

    .tool-detail-page .tool-layout{
      display:grid;
      grid-template-columns:minmax(0,1fr) 330px;
      gap:28px;
      align-items:start;
      padding-top:38px;
      padding-bottom:64px;
    }

    .tool-detail-page .tool-primary,
    .tool-detail-page .tool-sidebar{
      min-width:0;
    }

    .tool-detail-page .content-card,
    .tool-detail-page .usage-card,
    .tool-detail-page .related-panel{
      background:#fff;
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:0 12px 35px rgba(15,23,42,.06);
    }

    .tool-detail-page .content-card{
      padding:clamp(22px,4vw,38px);
    }

    .tool-detail-page .section-label{
      display:inline-flex;
      align-items:center;
      gap:8px;
      margin-bottom:12px;
      color:var(--cyan);
      font-size:13px;
      font-weight:800;
    }

    .tool-detail-page .section-label::before{
      content:"";
      width:9px;
      height:9px;
      background:var(--cyan);
      border-radius:50%;
      box-shadow:0 0 0 5px rgba(8,145,178,.12);
    }

    .tool-detail-page .content-card h2,
    .tool-detail-page .usage-card h2,
    .tool-detail-page .related-panel h2{
      margin:0 0 16px;
      color:#172033;
      font-size:24px;
      line-height:1.35;
    }

    .tool-detail-page .tool-content{
      min-width:0;
      max-width:100%;
      overflow-x:auto;
      color:#334155;
    }

    .tool-detail-page .tool-content img,
    .tool-detail-page .tool-content video,
    .tool-detail-page .tool-content iframe,
    .tool-detail-page .tool-content table{
      max-width:100%;
    }

    .tool-detail-page .tool-content img{
      height:auto;
      border-radius:14px;
    }

    .tool-detail-page .tool-content table{
      width:100%;
      border-collapse:collapse;
    }

    .tool-detail-page .tool-content th,
    .tool-detail-page .tool-content td{
      padding:11px;
      border:1px solid var(--line);
      text-align:left;
    }

    .tool-detail-page .tool-content a{
      color:var(--primary);
      text-decoration:underline;
      text-underline-offset:3px;
    }

    .tool-detail-page .tool-content pre{
      max-width:100%;
      overflow-x:auto;
      padding:18px;
      color:#dbeafe;
      background:#071d43;
      border-radius:12px;
    }

    .tool-detail-page .usage-card{
      margin-top:22px;
      padding:26px;
    }

    .tool-detail-page .usage-steps{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:14px;
      padding:0;
      margin:0;
      list-style:none;
    }

    .tool-detail-page .usage-steps li{
      position:relative;
      padding:50px 16px 17px;
      background:#f7fbff;
      border:1px solid #dceafb;
      border-radius:14px;
      color:#475569;
      font-size:14px;
    }

    .tool-detail-page .usage-steps strong{
      position:absolute;
      top:14px;
      left:15px;
      width:28px;
      height:28px;
      display:grid;
      place-items:center;
      color:#fff;
      background:var(--primary);
      border-radius:50%;
      font-size:12px;
    }

    .tool-detail-page .related-panel{
      position:sticky;
      top:22px;
      padding:22px;
    }

    .tool-detail-page .related-list{
      display:grid;
      gap:11px;
    }

    .tool-detail-page .related-tool{
      display:flex;
      gap:12px;
      padding:12px;
      border:1px solid #e6edf5;
      border-radius:13px;
      transition:transform .2s ease,border-color .2s ease,background .2s ease;
    }

    .tool-detail-page .related-tool:hover{
      transform:translateY(-2px);
      border-color:#8ecddd;
      background:var(--cyan-soft);
    }

    .tool-detail-page .related-tool img{
      flex:0 0 46px;
      width:46px;
      height:46px;
      padding:6px;
      object-fit:contain;
      background:#fff;
      border-radius:10px;
    }

    .tool-detail-page .related-tool div{
      min-width:0;
    }

    .tool-detail-page .related-tool strong{
      display:block;
      color:#1e293b;
      font-size:14px;
    }

    .tool-detail-page .related-tool p{
      display:-webkit-box;
      margin:3px 0 0;
      overflow:hidden;
      color:var(--muted);
      font-size:12px;
      line-height:1.45;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }

    .tool-detail-page .all-tools{
      display:flex;
      align-items:center;
      justify-content:center;
      min-height:44px;
      margin-top:16px;
      color:#fff;
      background:var(--primary);
      border-radius:11px;
      font-weight:800;
    }

    .tool-detail-page .all-tools:hover{
      background:var(--primary-dark);
    }

    .tool-detail-page .notice{
      margin-top:18px;
      padding:15px;
      color:#475569;
      background:#fff9e9;
      border:1px solid #f4dfaa;
      border-radius:12px;
      font-size:13px;
    }

    .footer{
      color:#cbd5e1;
      background:#071426;
    }

    .footer-grid{
      display:grid;
      grid-template-columns:1.4fr 1fr 1fr 1fr;
      gap:42px;
      padding:58px 0 40px;
    }

    .footer .logo{
      color:#fff;
    }

    .footer-brand p{
      max-width:430px;
      margin:18px 0;
      color:#94a3b8;
      font-size:14px;
    }

    .footer-social{
      color:#fff;
    }

    .footer h3{
      margin:0 0 16px;
      color:#fff;
      font-size:16px;
    }

    .footer-links,
    .footer-contact{
      display:grid;
      gap:9px;
    }

    .footer-links a,
    .footer-contact a,
    .footer-contact span{
      color:#94a3b8;
      font-size:14px;
      transition:color .2s ease;
    }

    .footer-links a:hover,
    .footer-contact a:hover{
      color:#67e8f9;
    }

    .footer-bottom{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      padding:20px 0 26px;
      color:#8291a7;
      border-top:1px solid rgba(255,255,255,.1);
      font-size:13px;
    }

    @media (max-width:1180px){
      .main-nav{
        display:none;
      }

      .hamburger{
        display:block;
      }

      .header-btns{
        margin-left:auto;
      }
    }

    @media (max-width:900px){
      .tool-detail-page .tool-layout{
        grid-template-columns:1fr;
      }

      .tool-detail-page .related-panel{
        position:static;
      }

      .footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
      }
    }

    @media (max-width:680px){
      .container{
        width:min(100% - 28px,var(--container));
      }

      .topbar-inner{
        min-height:54px;
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:1px;
        padding:7px 0;
      }

      .topbar-contact{
        flex-wrap:wrap;
        gap:4px 14px;
      }

      .header-inner{
        min-height:70px;
        gap:10px;
      }

      .header .logo span{
        max-width:120px;
      }

      .header-btns > .account-link{
        display:none;
      }

      .tool-detail-page .tool-heading{
        padding:38px 0;
      }

      .tool-detail-page .tool-title-row{
        flex-direction:column;
        gap:16px;
      }

      .tool-detail-page .tool-main-icon{
        width:68px;
        height:68px;
        flex-basis:68px;
      }

      .tool-detail-page .tool-intro{
        font-size:15px;
      }

      .tool-detail-page .tool-layout{
        padding-top:24px;
        padding-bottom:42px;
      }

      .tool-detail-page .usage-steps{
        grid-template-columns:1fr;
      }

      .footer-grid{
        grid-template-columns:1fr;
        gap:28px;
        padding:42px 0 30px;
      }

      .footer-bottom{
        align-items:flex-start;
        flex-direction:column;
      }
    }

    @media (max-width:420px){
      .header .logo img{
        width:37px;
        height:37px;
      }

      .header .logo span{
        max-width:92px;
        font-size:14px;
      }

      .header-btns{
        gap:7px;
      }

      .tool-detail-page .content-card,
      .tool-detail-page .usage-card,
      .tool-detail-page .related-panel{
        border-radius:14px;
      }
    }